CoreNLP CorefChainAnnotation.class的Coreference Resolution无法正常工作

时间:2016-10-18 13:07:30

标签: parsing semantic-web text-mining stanford-nlp

我正在使用核心nlp库在我的文本中找到共同参考

  泰森与妻子和两个孩子一起住在纽约市。

当我在Stanford CoreNLP Online demo上运行时,它正确地给我output

但是当我在我的机器上运行这个文本时,它在这行代码上返回null

  

Map graph = document.get(CorefChainAnnotation.class);

谢谢

1 个答案:

答案 0 :(得分:0)

请看这个完整的例子 - http://blog.pengyifan.com/resolve-coreference-using-stanford-corenlp/。我想你错过了一些东西,因为我无法理解你提供的代码的确切原因。