You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
代码为: 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
The text was updated successfully, but these errors were encountered:
注意事项
请确认下列注意事项:
版本号
当前最新版本号是: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
The text was updated successfully, but these errors were encountered: