nlpcommon, Python Text Tool. Python3开发。
Guide
nlpcommon is a python Open Source Toolkit for text classification. The goal is to implement text analysis algorithm, so as to achieve the use in the production environment.
nlpcommon has the characteristics of clear algorithm, high performance and customizable corpus.
Functions:
While providing rich functions, nlpcommon internal modules adhere to low coupling, model adherence to inert loading, dictionary publication, and easy to use.
pip3 install nlpcommon
or
git clone https://github.com/shibing624/nlpcommon.git
cd nlpcommon
python3 setup.py install
import sys
sys.path.append('..')
from nlpcommon import stopwords
if __name__ == '__main__':
print(len(stopwords), stopwords)
output:
2438 {'.', '大家', '孰知', '至于', './', '知道', '二话没说', '一何', '从宽', 'especially' ... }
如果你在研究中使用了nlpcommon,请按如下格式引用:
@misc{nlpcommon,
title={nlpcommon: Common tool for text NLP},
author={Ming Xu},
howpublished={https://github.com/shibing624/nlpcommon},
year={2022}
}
授权协议为 The Apache License 2.0,可免费用做商业用途。请在产品说明中附加nlpcommon的链接和授权协议。
项目代码还很粗糙,如果大家对代码有所改进,欢迎提交回本项目,在提交之前,注意以下两点:
tests
添加相应的单元测试python setup.py test
来运行所有单元测试,确保所有单测都是通过的之后即可提交PR。