Skip to content

rahkum96/Sentiment-Analysis-using-Natural-Language-Processing

Repository files navigation

Sentiment-Analysis-using-Natural-Language-Processing

Emotions dataset for NLP classification tasks

image

About

This Model is uded to predict the emotion based on text (sentiment analysis). All the links for datasets and the python notebooks used for model creation are mentioned below in this readme. In Training Data I have combined train.txt and val.txt. I have also provide the dataset in this repository and link given below.

Models with their Accuracy of Prediction

Accuracy= 95.5%

             precision    recall  f1-score   support

       0       0.97      0.94      0.96      1080
       1       0.94      0.97      0.95       920

Dependencies

 Keras
 NLTK
 Pandas
 Scikit-Learn
 Numpy
 python 3.9
 

Usage

Just run jupyter notebook in terminal and it will run in your browser.

Install Jupyter here i've you haven't.

Note

==> You can find all the models https://github.com/rahkum96/Sentiment-Analysis-using-Natural-Language-Processing/blob/main/Sentiments%20Analysis_Emotions%20dataset%20for%20NLP.ipynb

Steps to run this application in your system

  1. Clone or download the repo.
  2. Open command prompt in the downloaded folder.

Data set link:

https://www.kaggle.com/praveengovi/emotions-dataset-for-nlp