【发布时间】:2016-10-18 13:07:30
【问题描述】:
我正在使用核心 nlp 库在我的文本中查找共指
泰森与妻子和两个孩子住在纽约市。
当我在Stanford CoreNLP Online demo 上运行它时,它给了我正确的output
但是当我在我的机器上运行这个文本时,它在这行代码中返回 null
Map graph = document.get(CorefChainAnnotation.class);
谢谢
【问题讨论】:
-
库是否有任何问题,因为我已遵循此代码 [stackoverflow.com/questions/6572207/… 和此代码 [github.com/drewfarris/corenlp-examples/blob/master/src/main/…。我不知道为什么它在这个文本上给我 null。我也试过这段代码 [stanfordnlp.github.io/CoreNLP/coref.html],但它抛出了内存不足异常,创建了太多的哈希表。
标签: parsing semantic-web text-mining stanford-nlp