node.js - Stanford NLP API for others languages -
i analyze sentences (others languages english) stabnford nlp.
for moment run server on localhost:9000
java -mx4g -cp "*" edu.stanford.nlp.pipeline.stanfordcorenlpserver
and in node server call api :
output=$(wget --post-data '+"'"+text+"' "+"'localhost:"+port+' /?properties= { "props": "stanfordcorenlp-[other language].properties", "annotators": "ssplit,parse", "outputformat": "json" }' -qo -) && echo $output",{ encoding: 'utf8' }
however result still english language, don't don't why ? have idea use others language on stanford nlp ?
thanks
you should use option request (example: german):
"pipelinelanguage":"german"
Comments
Post a Comment