Twitter-Sentiment-Analysis
Using Logistic Regression
- Gradient Descent to train the model
- Data Preprocessing involve tokenization, stemming, removing stop words and punctuations.
- Sigmoid function to build the model
- Data Preprocessing involve tokenization, stemming, removing stop words and punctuations.
- Calculating conditional probabilities using laplacian smoothing
- Train the model using principles of naive bayes theorem, where P(posterior)= P(prior) * (liklihood)
- Calculating positive to negative ratio for a word
- pdb
- nltk
- numpy
- pandas
- string
- math