Executing and testing stanford core nlp example

前端 未结 4 1498
南笙
南笙 2020-12-30 08:46

I downloaded stanford core nlp packages and tried to test it on my machine.

Using command: java -cp \"*\" -mx1g edu.stanford.nlp.sentiment.SentimentPipeline -f

4条回答
  •  天涯浪人
    2020-12-30 09:02

    You need to add the "sentiment" annotator to the list of annotators:

    -annotators tokenize,ssplit,pos,lemma,parse,sentiment
    

    This will add a "sentiment" property to each sentence node in your XML.

提交回复
热议问题