我想用 Stabnford NLP 分析句子(其他语言到英语)。
目前我在 localhost:9000 上运行服务器
java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer
在我的节点服务器中,我这样调用 api:
output=$(wget --post-data '+"'"+text+"' "+"'localhost:"+port+'
/?properties=
{
"props": "StanfordCoreNLP-[OTHER LANGUAGE].properties",
"annotators": "ssplit,parse",
"outputFormat": "json"
}'
-qO -) && echo $output",{ encoding: 'utf8' }
但是结果仍然是英语,我不知道为什么?有人想在斯坦福 NLP 上使用其他语言吗?
谢谢