Comments (5)
如果目标是要打造工业级强度的分词工具,那么:
1、按照 PEP8 规范把代码整理一下;
2、不建议支持 Python 2,Python 2 都要淘汰了,这个精力花得不值;
3、模型文件在 GitHub (可以参考 distributing-large-binaries)或者 s3 上放一份;
4、加载模型的时候给出提示(输出相应的日志,而非直接打印到控制台),这样用户可以知道模型什么时候加载完毕,否则会误以为分词本身用了很长时间;
5、和其他分词工具(如 hanlp, LTP 等)进行更全面的对比,以及需要增加关于性能的基准测试(比如每秒能处理多少词);
6、对标点符号、数字等的特殊处理;
7、增加 C++/Java 接口(假如仅仅是做推断的话,其实更建议 CRF 的部分用 C++ 重写)
我也提了和你一样的建议,和hanlp、ltp做对比,不过作者把我的issue都close了。。。。
from pkuseg-python.
如果目标是要打造工业级强度的分词工具,那么:
1、按照 PEP8 规范把代码整理一下;
2、不建议支持 Python 2,Python 2 都要淘汰了,这个精力花得不值;
3、模型文件在 GitHub (可以参考 distributing-large-binaries)或者 s3 上放一份;
4、加载模型的时候给出提示(输出相应的日志,而非直接打印到控制台),这样用户可以知道模型什么时候加载完毕,否则会误以为分词本身用了很长时间;
5、和其他分词工具(如 hanlp, LTP 等)进行更全面的对比,以及需要增加关于性能的基准测试(比如每秒能处理多少词);
6、对标点符号、数字等的特殊处理;
7、增加 C++/Java 接口(假如仅仅是做推断的话,其实更建议 CRF 的部分用 C++ 重写)
我们会考虑把您的这些建议加进我们的下一个版本的工具包里。另一方面,除了改进我们的核心功能,我们也正在积极筹备更多领域的预训练语料供大家下载使用。非常感谢您的建议!
from pkuseg-python.
为什么我觉得你这个好慢啊 我开了十个线程等了半天才运行完
from pkuseg-python.
python代码需要优化的太多,还是建议用C++啥的重写下
from pkuseg-python.
为什么我觉得你这个好慢啊 我开了十个线程等了半天才运行完
这个慢的一度让自己感觉程序是不是默默死掉了,跑了老半天才完成了几轮,没有hanlp快
from pkuseg-python.
Related Issues (20)
- 自己指定postag的路径、自己指定model_name预训练模型路径 HOT 2
- 下载的zip包删除就会导致重新下载,但是目录下有解压的文件
- 能不能用自训练模型,对文件进行分词啊? HOT 1
- 打包缺少文件情况 FileNotFoundError: \\cache\\_MEI183882\\pkuseg\\dicts\\default.pkl' HOT 2
- 是否可以支持在 M1下使用 目前直接安装会报错。 HOT 2
- AttributeError: type object 'pkuseg' has no attribute 'pkuseg'
- TypeError: train() got an unexpected keyword argument 'nthread' HOT 1
- 词性标注效果过好 HOT 1
- Python3.9/3.9均无法pip安装成功 HOT 7
- 如何进行领域自适应训练? HOT 1
- 虚拟环境下使用出现FileNotFoundError,已单独下载postag还是无果
- cannot install in the environment of python 3.9 HOT 6
- pip install failed on Python 3.10.8 HOT 4
- 越训练,f-score越低 HOT 4
- pip install failed on Python 3.10.9 HOT 7
- 词性标注不准
- 预训练模型“default_v2”导入报错 HOT 2
- 祈使句/动宾短语,分词好像有些不对劲呢,望指点,谢谢
- 分词结果严重错误 HOT 3
- 词性输出错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkuseg-python.