NLP部分
Lucene, Elastic Search, Solr 都是检索系统。
Elastic Search:
http://www.ruanyifeng.com/blog/2017/08/elasticsearch.html
https://www.elastic.co/guide/cn/elasticsearch/guide/cn/getting-started.html
https://www.jianshu.com/p/05cff717563c
深度学习在NLP的中应用:
概览:https://blog.csdn.net/u011500062/article/details/52228952
https://www.jiqizhixin.com/articles/2019-02-28-12
QA问答: https://blog.csdn.net/u011537073/article/details/54964359
https://www.jiqizhixin.com/articles/2018-01-13-20
Zheng Gao's Wonderland
JUST TO IT!
Friday, August 9, 2019
Saturday, July 27, 2019
Wednesday, July 24, 2019
Thursday, July 11, 2019
useful python tricks
tqdm 进度条控制器
... sleep(0.01)
打印python 结果:
print("current line count %d"%(line_count))
print(f"current line count {line_count}")
print("current line count {}".format(line_count))
如何写logging 的正确方法 以及和yaml的结合
https://cuiqingcai.com/6080.html
https://juejin.im/post/5bc2bd3a5188255c94465d31
https://www.cnblogs.com/yyds/p/6901864.html
如何写exception 和 raise, assert, 和 warning:
https://blog.csdn.net/u013982161/article/details/53453979
https://blog.csdn.net/IllegalName/article/details/77446428
__init__.py的作用
python中,类方法和静态方法区别:https://blog.csdn.net/lihao21/article/details/79762681
为什么用类方法和静态方法:
https://www.zhihu.com/question/20021164
https://zhuanlan.zhihu.com/p/35643573
https://foofish.net/different_bettween_classmethod_and_staticmethod.html
python 类变量和实例变量:http://kuanghy.github.io/2015/12/19/python-variable
__init__.py 的解释:
https://www.cnblogs.com/Lands-ljk/p/5880483.html
https://python3-cookbook.readthedocs.io/zh_CN/latest/c10/p01_make_hierarchical_package_of_modules.html
python 中@ 的用法:https://blog.csdn.net/u012759262/article/details/79749299
python 装饰器,*args **kwargs : https://blog.csdn.net/tianbwin2995/article/details/50863940
__init__, __new__, __call__ 函数 function 解析:https://blog.csdn.net/junxieshiguan/article/details/82502437
python yield 关键字:
yield是用于生成器。什么是生成器,你可以通俗的认为,在一个函数中,使用了yield来代替return的位置的函数,就是生成器。它不同于函数的使用方法是:函数使用return来进行返回值,每调用一次,返回一个新加工好的数据返回给你;yield不同,它会在调用生成器的时候,把数据生成object,然后当你需要用的时候,要用next()方法来取,同时不可逆。你可以通俗的叫它"轮转容器",可用现实的一种实物来理解:水车,先yield来装入数据、产出generator object、使用next()来释放;好比水车转动后,车轮上的水槽装入水,随着轮子转动,被转到下面的水槽就能将水送入水道中流入田里
https://www.ibm.com/developerworks/cn/opensource/os-cn-python-yield/index.html
https://www.cnblogs.com/neightchen/p/6669659.html
python deque 从两端都可以加入
很多小的function
https://www.1point3acres.com/bbs/thread-543794-1-1.html
from tqdm import tqdm
from time import sleep
for i in tqdm(range(1, 500)): ... sleep(0.01)
打印python 结果:
print("current line count %d"%(line_count))
print(f"current line count {line_count}")
print("current line count {}".format(line_count))
如何写logging 的正确方法 以及和yaml的结合
https://cuiqingcai.com/6080.html
https://juejin.im/post/5bc2bd3a5188255c94465d31
https://www.cnblogs.com/yyds/p/6901864.html
如何写exception 和 raise, assert, 和 warning:
https://blog.csdn.net/u013982161/article/details/53453979
https://blog.csdn.net/IllegalName/article/details/77446428
__init__.py的作用
python中,类方法和静态方法区别:https://blog.csdn.net/lihao21/article/details/79762681
为什么用类方法和静态方法:
https://www.zhihu.com/question/20021164
https://zhuanlan.zhihu.com/p/35643573
https://foofish.net/different_bettween_classmethod_and_staticmethod.html
python 类变量和实例变量:http://kuanghy.github.io/2015/12/19/python-variable
__init__.py 的解释:
https://www.cnblogs.com/Lands-ljk/p/5880483.html
https://python3-cookbook.readthedocs.io/zh_CN/latest/c10/p01_make_hierarchical_package_of_modules.html
python 中@ 的用法:https://blog.csdn.net/u012759262/article/details/79749299
python 装饰器,*args **kwargs : https://blog.csdn.net/tianbwin2995/article/details/50863940
__init__, __new__, __call__ 函数 function 解析:https://blog.csdn.net/junxieshiguan/article/details/82502437
python yield 关键字:
yield是用于生成器。什么是生成器,你可以通俗的认为,在一个函数中,使用了yield来代替return的位置的函数,就是生成器。它不同于函数的使用方法是:函数使用return来进行返回值,每调用一次,返回一个新加工好的数据返回给你;yield不同,它会在调用生成器的时候,把数据生成object,然后当你需要用的时候,要用next()方法来取,同时不可逆。你可以通俗的叫它"轮转容器",可用现实的一种实物来理解:水车,先yield来装入数据、产出generator object、使用next()来释放;好比水车转动后,车轮上的水槽装入水,随着轮子转动,被转到下面的水槽就能将水送入水道中流入田里
https://www.ibm.com/developerworks/cn/opensource/os-cn-python-yield/index.html
https://www.cnblogs.com/neightchen/p/6669659.html
python deque 从两端都可以加入
很多小的function
https://www.1point3acres.com/bbs/thread-543794-1-1.html
Monday, July 1, 2019
python 的打包 发布
Python 打包:
http://kuanghy.github.io/2018/04/29/setup-dot-py
https://www.ibm.com/developerworks/cn/linux/l-cppeak3.html
http://kuanghy.github.io/2018/04/29/setup-dot-py
http://kuanghy.github.io/2018/04/29/setup-dot-py
https://www.ibm.com/developerworks/cn/linux/l-cppeak3.html
Python 库打包的格式包括 Wheel 和 Egg。Egg 和 Wheel 本质上都是一个 zip 格式包,Egg 文件使用 .egg 扩展名,Wheel 使用 .whl 扩展名。Wheel 的出现是为了替代 Egg,其现在被认为是 Python 的二进制包的标准格式。两者区别:https://packaging.python.org/discussions/wheel-vs-egg/
http://wsfdl.com/python/2015/09/06/Python%E5%BA%94%E7%94%A8%E7%9A%84%E6%89%93%E5%8C%85%E5%92%8C%E5%8F%91%E5%B8%83%E4%B8%8A.html
https://blog.csdn.net/hong201/article/details/4219035
https://zhuanlan.zhihu.com/p/25020501
https://www.cnblogs.com/kungfupanda/p/3343113.html
http://wsfdl.com/python/2015/09/06/Python%E5%BA%94%E7%94%A8%E7%9A%84%E6%89%93%E5%8C%85%E5%92%8C%E5%8F%91%E5%B8%83%E4%B8%8A.html
https://blog.csdn.net/hong201/article/details/4219035
https://zhuanlan.zhihu.com/p/25020501
https://www.cnblogs.com/kungfupanda/p/3343113.html
Wednesday, June 12, 2019
vim 总结
toturial: https://vimhelp.org/
vim - A modal editor based on the classic ‘vi’ editor by Bill Joy.
Vim quick reference
Changing modes
Enter command mode: :
Enter typing mode: i (insert at cursor), a (append after cursor), A (append at end of line)
Exit command or typing mode: ESC
Moving (you must not be in command or typing mode)
By line or column: use the arrow keys or h (left), j (down), k (up), l (right)
Go to beginning/end of line: 0 or $
Go to beginning/end of file: 1G or G
Go to particular line: type the linenumber and press G
Prev/next word: gE or W
Beginning/end of word: e or b
Search: /search term or regex
Opening, saving and closing files
Open a file: :e filename or path
Save and exit: :x
Save without exiting: :w
Exit without saving: :q!
Getting help
In-editor help: :help
The less command allows you to use these key-commands to move around the file
x
Subscribe to:
Posts (Atom)