-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用户自己添加新的词性的问题 #271
Comments
请给出触发代码 |
DemoCustomNature.java中 |
[苹果电脑/np, 可以/v, 运行/vn, 开源/v, 阿尔法/nrf, 狗/n, 代码/n, 吗/y] |
from pyhanlp import * def add_dictionary(): def keyword_extract(): if name == "main": 结果:[攻城/ns, 狮/Ng, 逆袭/v, 单身/n, 狗/n, ,/w, 迎娶/v, 白富美/nr, ,/w, 走上/v, 人生/n, 巅峰/nr] 在python版本里不起作用呢 |
|
这个我试过了,是可以的,在NLPTokenizer.segment的时候不起作用 |
感谢反馈,已经修复,请参考上面的commit。 |
不好意思,请问你们测试通过没?我这边怎么还是不行呢,我这边是需要有其它什么修改么? |
你需要等下一个版本,或者自行编译jar并替换pyhanlp中的jar。 |
好的,谢谢啦!不过我发现从上个版本到现在这个文件修改的地方挺多的,请问你们下个版本大概什么时候发布呢? |
现在发现1.2.10给出的用户自定义添加词性的demo不适用于NLPTokenizer.segment(text)分词,还没找出原因,希望能帮忙看一下,谢谢!
The text was updated successfully, but these errors were encountered: