2012-07-06 66 views
2

我試着創建一個新的項目,在斯坦福解析器上工作。我應該在我的項目中包含哪些所有jar文件以使用stanford分析器?

我已將stanford-postagger.jar和stanford-parser-2012-05-22-models.jar添加到項目中。 還有什麼我應該補充的?

我無法使用LexicalizedParser。我遇到了一個錯誤:LexicalizedParser cannot be resolved to a type" in the line ...

LexicalizedParser lp = LexicalizedParser.loadModel("edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz"); 

我正在使用eclipse IDE。

謝謝, 哈里什

回答

2

LexicalizedParser是在斯坦福-corenlp.jar

相關問題