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 で他の言語を使用する考えがある人はいますか?
ありがとう