I have used Multinomial Naive Bayes, Random Trees Embedding, Random Forest Regressor, Random Forest Classifier, Multinomial Logistic Regression, Linear Support Vector Classifier, Linear Regression, Extra Tree Regressor, Extra Tree Classifier, Decision Tree Classifier, Binary Logistic Regression and calculated accuracy score, confusion matrix and ROC(Receiver Operating Characteristic) and AUC(Area Under Curve) and finally shown how they are classifying the tweet in positive and negative.
A GUI software for sentimental analysis using python. I have used multiple algorithms and based on those shown independent outputs of every algorithm. On the CLI we can see the respective accuracy of each algorithm and we can analyze which performed the best. The user will input a twitter username and the select number of tweets he wants to analyze. Then he/she will run the program and the output will be shown in a separate window for every tweet!
test.py
Multinomial Naive Bayes, Random Trees Embedding, Random Forest Regressor, Random Forest Classifier, Multinomial Logistic Regression, Linear Support Vector Classifier, Linear Regression, Extra Tree Regressor, Extra Tree Classifier, Decision Tree Classifier, Binary Logistic Regression get training data, testing data with features for which we have to predict our sentiment then we calculate accuracy score, confusion matrix and ROC(Receiver Operating Characteristic) and AUC(Area Under Curve) and return positive or negative emotions.
Preprocess.py: It contains preprocessing function which performs following steps:-
twitter_credentials.py:
In this file, we store our access token, access token secret, consumer key, and consumer secret.
twitter_credentials.py: In this file we store our access token,access token secret, consumer key and consumer secret.
AllImport.py: This contains all the imported modules in one place so that we don’t have to include it in every file, thus reducing the redundancy.