Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/agalabov/moviereviewsentimentanalyzer
- Owner: AGalabov
- Created: 2019-03-13T13:28:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-13T13:44:58.000Z (almost 6 years ago)
- Last Synced: 2023-07-31T18:10:46.365Z (over 1 year ago)
- Language: Java
- Size: 421 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
```