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.5.2 我使用的版本是:hanlp-portable-1.5.2.jar
调用依存语法分析接口CRFDependencyParser.compute(sentence);出现返回结果死循环情况 返回结果中id为5的CoNLLWord的head为6,id为6的CoNLLWord的head为5。
没有修改源码直接调用CRFDependencyParser.compute(sentence)接口;
public void testCompute() throws Exception { String sentence = "男子从厦门游泳到金门"; CoNLLSentence cs = CRFDependencyParser.compute(sentence); System.out.println(cs.word[4].HEAD.ID); System.out.println(cs.word[5].HEAD.ID); }
0 5
6 5
The text was updated successfully, but these errors were encountered:
感谢反馈,这是个老问题了:#650
com.hankcs.hanlp.dependency.nnparser.NeuralNetworkDependencyParser
综上,我决定在下个版本废弃com.hankcs.hanlp.dependency.CRFDependencyParser这个模块。
com.hankcs.hanlp.dependency.CRFDependencyParser
Sorry, something went wrong.
非常感谢给予回复。
废弃CRFDependencyParser:#730
f7239b0
No branches or pull requests
注意事项
请确认下列注意事项:
版本号
当前最新版本号是:1.5.2
我使用的版本是:hanlp-portable-1.5.2.jar
我的问题
调用依存语法分析接口CRFDependencyParser.compute(sentence);出现返回结果死循环情况
返回结果中id为5的CoNLLWord的head为6,id为6的CoNLLWord的head为5。
复现问题
没有修改源码直接调用CRFDependencyParser.compute(sentence)接口;
触发代码
期望输出
实际输出
The text was updated successfully, but these errors were encountered: