Skip to content

harshitkgupta/Twitter-Sentiment-Analysis

Repository files navigation

Twitrer-Sentiment-Analysis

##python dependencies- you can install following dependencies using pip install <package-name> 1-nltk 2-sklearn 3-cPickle 4-numpy 5-pandas

##trainSentiment.py - this file is used for training models for sentiment analysis

We have used Naive Bayes and SVM for training and saved best model in pkl folder

##predictSentiment.py - this file is used for predicting sentiment from input file in Twitter Data folder change inputDirName and outputDirName in this file to get prediction from different folder

##sentimentUtils.py and commonUtils.py - this file is used for utility functions

##pkl - this folder contains python serailized objects used for training

##lexicon.txt - this file contains positive and negative words

##stopwords - this file has list of all stop words

##positive-data.csv negative-data.csv - this file contains positive and negative labeled data used for training

Buy Me A Coffee

About

project completed through upwork

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages