How to parse sentence that is multilingual?

被刻印的时光 ゝ 提交于 2019-12-08 08:36:41

问题


When I use Stanford Parser to parse sentences like: "Jirí Hubac 's script is a gem ." "Absorbing character study by André Turpin ."

It raise internal error.

How to deal with such situation that the sentence is multilingual?


回答1:


Using the full Stanford CoreNLP toolkit available here:

http://stanfordnlp.github.io/CoreNLP/

I ran this command:

java -Xmx6g -cp "stanford-corenlp-full-2015-12-09/*" edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse -file example.txt -outputFormat text

It had no problem parsing your example sentence and the output can be found in the file: example.txt.out

Could you please provide the command you issued and the error you got when trying to run on this sentence?



来源:https://stackoverflow.com/questions/36941881/how-to-parse-sentence-that-is-multilingual

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!