Socket
Book a DemoInstallSign in
Socket

edu.usc.ir:sentiment-analysis-parser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edu.usc.ir:sentiment-analysis-parser

Combines Apache OpenNLP and Apache Tika and provides facilities for automatically deriving sentiment from text.

Source
mavenMaven
Version
0.1
Version published
Maintainers
1
Source

Sentiment Analysis Parser

A parser performing sentiment analysis that uses the Apache OpenNLP and Apache Tika libraries to perform text analysis on the the Large Movie Review Dataset. Negative and positive reviews were combined together in a file "result", and each review has a "positive" or a "negative" label before it.

Use

How to build Sentiment Analysis Parser

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

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/categorical_dataset -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 -j ../../examples/gun-ads

Contributors

  • Chris A. Mattmann, JPL
  • Anastasija Mensikova, Trinity College, CT

Credits

This project began as the Google Summer of Code 2016 project of Anastasija Mensikova for Apache Software Foundation under the supervision of Chris Mattmann

License

Apache License, version 2

FAQs

Package last updated on 08 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts