Skip to content
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

为什么NLPTokenizer.ANALYZER下segment和analyze结果不同? #1156

Closed
1 task
rzsasuke97 opened this issue Apr 18, 2019 · 0 comments
Closed
1 task

为什么NLPTokenizer.ANALYZER下segment和analyze结果不同? #1156

rzsasuke97 opened this issue Apr 18, 2019 · 0 comments

Comments

@rzsasuke97
Copy link

rzsasuke97 commented Apr 18, 2019

注意事项

请确认下列注意事项:

  • 我已仔细阅读下列文档,都没有找到答案:
  • 我已经通过Googleissue区检索功能搜索了我的问题,也没有找到答案。
  • 我明白开源社区是出于兴趣爱好聚集起来的自由社区,不承担任何责任或义务。我会礼貌发言,向每一个帮助我的人表示感谢。
  • 我在此括号内输入x打钩,代表上述事项确认完毕。

版本号

当前最新版本号是:1.7.2
我使用的版本是:1.7.2

我的问题

复现问题

步骤

  1. 首先……
  2. 然后……
  3. 接着……

触发代码

不好意思 我是用python运行的

a=JClass('com.hankcs.hanlp.tokenizer.NLPTokenizer')
sentence="阶段注采比1.04"
seg_result1=a.ANALYZER.seg(sentence)
print(seg_result1)
seg_result1=a.ANALYZER.analyze(sentence)
print(seg_result1)

期望输出

[阶段/n, 注采比/n, 1.04/m]
阶段/n 注采比/n 1.04/m

实际输出

[阶段/n, 注采比/v, 1.04/m]
阶段/n 注采比/n 1.04/m

其他信息

注采比 n 是自定义词典中的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant