Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nhatthaiquang-agilityio/nlp-twitter-sentiment-analysis

Base on negative and positive twitters, I create a sentiment classifier(Naive Bayes and Maxent). Using predict neg or pos of sentence.
https://github.com/nhatthaiquang-agilityio/nlp-twitter-sentiment-analysis

machine-learning natural-language-processing nlp nltk sentiment-analysis

Last synced: about 1 month ago
JSON representation

Base on negative and positive twitters, I create a sentiment classifier(Naive Bayes and Maxent). Using predict neg or pos of sentence.

Awesome Lists containing this project

README

        

# nlp-twitter-sentiment-analysis
+ Naive Bayes Classifier
+ Maxent Classifier(Megam, GIS)

### Required
+ [Install Megam](https://textminingonline.com/dive-into-nltk-part-viii-using-external-maximum-entropy-modeling-libraries-for-text-classification)

### Overview
![Overview](./overview.png)

### Processing Steps
+ Preparation data
+ Feature Extraction(word feature and ngram)
+ Training Classifier
+ Classification
+ Accuracy

### Run
```
sen = SentimentTwitterClassifier()
sen.train_naivebayes_classifier()
sen.show_info_features()
sen.show_accuracy()

sen.classify_sentence("This was an amazing movie")

sen.classify_sentence("This was an worse movie")

sen.classify_sentence("This was not an good movie")
```

### Reference
[NLTK Classify](http://www.nltk.org/howto/classify.html)

[Analyzing Sentiment with Python and nltk](https://www.twilio.com/blog/2017/09/sentiment-analysis-python-messy-data-nltk.html)

[Twitter Sentiment](https://www.laurentluce.com/posts/twitter-sentiment-analysis-using-python-and-nltk/)

[NLTK Classify Example](https://github.com/EdmundMartin/nltk_classify)

[Text Classification to Sentiment Analysis](https://textminingonline.com/dive-into-nltk-part-ix-from-text-classification-to-sentiment-analysis)

[External Maximum Entropy Modeling for Text Classification](https://textminingonline.com/dive-into-nltk-part-viii-using-external-maximum-entropy-modeling-libraries-for-text-classification)