Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/nhatthaiquang-agilityio/nlp-twitter-sentiment-analysis
- Owner: nhatthaiquang-agilityio
- Created: 2019-03-21T03:19:39.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T01:28:20.000Z (almost 6 years ago)
- Last Synced: 2024-04-16T07:09:41.141Z (9 months ago)
- Topics: machine-learning, natural-language-processing, nlp, nltk, sentiment-analysis
- Language: Python
- Homepage:
- Size: 86.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)