2017-08-11 47 views
-1

stanfordnlp/CoreNLP如何獲得通用依賴性,而不是像命令行在線演示那樣增強?如何獲得普遍依賴?

在「斯坦福解析器全2016年10月31日」,我嘗試在命令行:

java -mx1000m -cp "$scriptdir/:" edu.stanford.nlp.parser.lexparser.LexicalizedParser -sentences newline -outputFormat "typedDependencies" -originalDependencies edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz $

,並獲得普遍的依賴,提高;但我不知道如何在命令行上獲得不增強的通用依賴性。任何人都可以幫我嗎?

+0

在 「斯坦福解析器全2016年10月31日」,我嘗試在命令行: 的Java -mx1000m -cp 「$ SCRIPTDIR /:」 edu.stanford.nlp.parser.lexparser。 LexicalizedParser -sentences newline -outputFormat「typedDependencies」-originalDependencies edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz $ 並獲得通用依賴性,增強;但我不知道如何在命令行上獲得不增強的通用依賴性。 任何人都可以幫助我嗎?非常感謝。 –

回答

0

您應該獲得完整版斯坦福CoreNLP軟件包的最新版本。

它可以在這裏找到:

https://stanfordnlp.github.io/CoreNLP/download.html

這是一個示例命令,將產生json它具有依賴性每個句子的幾個版本。

java -Xmx8g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse -file example-sentence.txt -outputFormat json 
相關問題