dasmith / stanford-corenlp-python

Python wrapper for Stanford CoreNLP tools v3.4.1
GNU General Public License v2.0
610 stars 229 forks source link

Modified to output sentiment of the text and words as well #39

Open bsatts opened 8 years ago

bsatts commented 8 years ago

Added sentiment analysis results to the output of parse function. Adds a key 'sentiment' to the sentence dictionary containing the sentiment value of the sentence and adds a sentiment key to the attributes of each word as well.

The major change though is this requires use of Corenlp 3.5.2 version as this is the only one that outputs the sentiment class through command line input.