Download and run Sentiment Analysis Parser



How to build Sentiment Analysis Parser

$ cd $HOME/src $ git clone https://github.com/USCDataScience/SentimentAnalysisParser $ cd SentimentAnalysisParser $ mvn install assembly:assembly

Alternatively, you can download the parser here and follow build instructions above



How to train a model

$ cd target/sentiment $ mkdir -p model/org/apache/tika/parser/sentiment/topic/ $ bin/sentiment SentimentTrainer -model model/org/apache/tika/parser/sentiment/topic/en-sentiment.bin -lang en -data ./../../examples/result -encoding UTF-8

The model is written to en-sentiment.bin



How to run the parser

Make sure you are in target/sentiment

$ bin/sentiment Tika -model model/org/apache/tika/parser/sentiment/topic/en-sentiment.bin -o ../../examples/gun-output1 ../../examples/gun-ads