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

MaxEntDependencyParser在1.6.6版本抛出异常 #914

Closed
1 task done
rainson opened this issue Aug 8, 2018 · 1 comment
Closed
1 task done

MaxEntDependencyParser在1.6.6版本抛出异常 #914

rainson opened this issue Aug 8, 2018 · 1 comment
Labels

Comments

@rainson
Copy link

rainson commented Aug 8, 2018

注意事项

请确认下列注意事项:

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

版本号

当前最新版本号是:hanlp-portable-1.6.6
我使用的版本是:hanlp-portable-1.6.6

我的问题

代码为: CoNLLSentence sent = MaxEntDependencyParser.compute(text);
在1.6.4版本运行没问题
在1.6.6版本运行抛出异常:
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.hankcs.hanlp.dependency.MinimumSpanningTreeParser.parse(MinimumSpanningTreeParser.java:41)
at com.hankcs.hanlp.dependency.AbstractDependencyParser.parse(AbstractDependencyParser.java:56)
at com.hankcs.hanlp.dependency.MaxEntDependencyParser.compute(MaxEntDependencyParser.java:86)
at Test.main(Test.java:54)
Caused by: java.lang.NullPointerException
at com.hankcs.hanlp.dependency.common.Node.(Node.java:113)
at com.hankcs.hanlp.dependency.common.Node.(Node.java:28)
... 4 more

@hankcs hankcs closed this as completed in a7124e8 Aug 11, 2018
@hankcs
Copy link
Owner

hankcs commented Aug 11, 2018

感谢反馈,已经修复,请参考上面的commit。
如果还有问题,欢迎重开issue。

@hankcs hankcs added the bug label Aug 11, 2018
hankcs added a commit that referenced this issue Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants