annotations - Stanford NLP Sentiment, sentences in a new line -
i'm trying utilize stanford nlp sentiment analysis on file new sentence in each line using command:
c:\users\alonr\ideaprojects\stanford-corenlp-full-2014-08-27>java -cp "*" -mx2g edu.stanford.nlp.sentiment.sentimentpipeline -input text -output probabilities -file my_file.txt
unfortunately doesn't recognize line brakes in file sentence brakes. how can create so?
the main programme sentimentpipeline
isn't set allow changing sentence-splitters. if you're using stanford corenlp, however: run through main corenlp pipeline instead -ssplit.eolonly
flag:
java -cp "*" -mx2g edu.stanford.nlp.pipeline.stanfordcorenlp \ -annotators tokenize,ssplit,pos,parse,sentiment -ssplit.eolonly \ -inputfile my_input.txt -outputformat text -outputfile my_file.txt
annotations newline stanford-nlp sentiment-analysis
No comments:
Post a Comment