Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/agalabov/moviereviewsentimentanalyzer

Review analyzer based on previous knowledge from a file with reviews.
https://github.com/agalabov/moviereviewsentimentanalyzer

Last synced: about 1 month ago
JSON representation

Review analyzer based on previous knowledge from a file with reviews.

Awesome Lists containing this project

README

        

# MovieReviewSentimentAnalyzer
The program reads a file of reviews starting with a mark varying from 0 to 4.
```
0 -> "negative"
1 -> "somewhat negative"
2 -> "neutral"
3 -> "somewhat positive"
4 -> "positive"
```

Based on that knowledge it can access the top few positive/negative/most used words and also calculate a mark for any review.

## Usage

```java
public double getReviewSentiment(String review)
public String getReviewSentimentAsName(String review)
public double getWordSentiment(String word)
public Collection getMostFrequentWords(int n)
public Collection getMostPositiveWords(int n)
public Collection getMostNegativeWords(int n)
```