We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
请确认下列注意事项:
当前最新版本号是:1.7.4 我使用的版本是:1.7.4
本地分词的词性("需要"这个词)和在线演示结果不一样: 本地分成了n,线上分成了vn(第一个"需要"),v(第二个"需要")
String words = "当前阶段的配置需要立足防御,同时需要谨防今年强势板块在补跌风险"; System.out.println(NLPTokenizer.segment(words));
[当前/n, 阶段/n, 的/u, 配置/n, 需要/v, 立足/n, 防御/n, ,/w, 同时/n, 需要/v, 谨防/v, 今年/t, 强势/n, 板块/n, 在/p, 补/v, 跌/v, 风险/n]
[当前/n, 阶段/n, 的/u, 配置/n, 需要/n, 立足/n, 防御/n, ,/w, 同时/n, 需要/n, 谨防/v, 今年/t, 强势/n, 板块/n, 在/p, 补/v, 跌/v, 风险/n]
The text was updated successfully, but these errors were encountered:
标注模型也换成了 <演示用的是98年6个月的大模型>,问题依然存在
Sorry, something went wrong.
为什么一定要相同呢?#1205
是自定义词典的问题. 感谢 @hankcs
This issue has been mentioned on 蝴蝶效应. There might be relevant details there:
https://bbs.hankcs.com/t/topic/2741/5
No branches or pull requests
注意事项
请确认下列注意事项:
版本号
当前最新版本号是:1.7.4
我使用的版本是:1.7.4
我的问题
本地分词的词性("需要"这个词)和在线演示结果不一样:
本地分成了n,线上分成了vn(第一个"需要"),v(第二个"需要")
复现问题
步骤
触发代码
期望输出
[当前/n, 阶段/n, 的/u, 配置/n, 需要/v, 立足/n, 防御/n, ,/w, 同时/n, 需要/v, 谨防/v, 今年/t, 强势/n, 板块/n, 在/p, 补/v, 跌/v, 风险/n]
实际输出
[当前/n, 阶段/n, 的/u, 配置/n, 需要/n, 立足/n, 防御/n, ,/w, 同时/n, 需要/n, 谨防/v, 今年/t, 强势/n, 板块/n, 在/p, 补/v, 跌/v, 风险/n]
线上演示输出:
The text was updated successfully, but these errors were encountered: