2016-03-16 66 views
1

我一直在嘗試使用2015-12-09發行版中包含的Stanford CoreNLP API。我使用啓動服務器:Stanford CoreNLP API無法解析某些語句

java -mx5g -cp "./*" edu.stanford.nlp.pipelinStanfordCoreNLPServer 

服務器工作一般,但未能對一些setnences包括以下內容:

"Aside from her specifically regional accent, she reveals by the use of the triad, ``irritable, tense, depressed, a certain pedantic itemization that indicates she has some familiarity with literary or scientific language (i.e., she must have had at least a high­school education) , and she is telling a story she has mentally rehearsed some time before." 

我結束了與開始結果:

{"sentences":[{"index":0,"parse":"SENTENCE_SKIPPED_OR_UNPARSABLE","basic-dependencies": 

我會大大appriciate一些幫助設置這一點 - 我是不是在nlp管道中包括一些註釋器。

這同一句話工作在http://corenlp.run/

回答

1

如果你正在尋找一個依賴解析(如在corenlp.run),你應該看看basic-dependencies領域,而不是parse領域。如果您想要選區分析,您應該將parse註釋器包含在發送給服務器的註釋器列表中。默認情況下,服務器不包含解析器註釋器,因爲它相對較慢。

相關問題