CoreNLP CorefChainAnnotation.class 的共指解析无效
Coreference Resolution by CoreNLP CorefChainAnnotation.class not working
我正在使用核心 nlp 库在我的文本中查找共指
Tyson lives in New York City with his wife and their two children.
当我在 运行Stanford CoreNLP Online demo it's giving me correct output
上进行此操作时
但是当我在我的机器上 运行 这段文字时,它在这行代码中返回 null
Map graph = document.get(CorefChainAnnotation.class);
谢谢
查看这个完整示例 - http://blog.pengyifan.com/resolve-coreference-using-stanford-corenlp/。我猜你遗漏了一些东西,因为我无法从你提供的代码中理解确切的原因。
我正在使用核心 nlp 库在我的文本中查找共指
Tyson lives in New York City with his wife and their two children.
当我在 运行Stanford CoreNLP Online demo it's giving me correct output
上进行此操作时但是当我在我的机器上 运行 这段文字时,它在这行代码中返回 null
Map graph = document.get(CorefChainAnnotation.class);
谢谢
查看这个完整示例 - http://blog.pengyifan.com/resolve-coreference-using-stanford-corenlp/。我猜你遗漏了一些东西,因为我无法从你提供的代码中理解确切的原因。