Skip to content

harisj58/sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sentiment Analysis Tool - A work of Haris Javed

Find out the sentiment conveyed by your words. Try out the project for yourself: https://bit.ly/3EeLL5i.

Project Details

Tech Stack:

Python and various Machine Learning libraries.

python scikit_learn pandas numpy matplotlib nltk gradio

Installation:

  • Make sure you have Python installed and ready to go.
  • Clone this repository onto your system.
  • Create a new Python environment and install the dependencies in it. This can be done as follows:
    • Open command prompt and cd to the directory where you have cloned the repo.
    • Run the command Python -m venv env to create a new virtual environment named env.
    • Activate the enviroment by running the command env\Scripts\activate.bat.
    • Install depencies by running the command pip install -r requirements.txt .

The above steps will create a python virtual environment and install the required depndencies in it. To go through the noteboook, follow these steps:

  • Open command prompt and cd to the directory where you have cloned the repo.
  • Activate the python environment by running the command env\Scripts\activate.bat.
  • View the notebook by running jupyter notebook.

Once your model is created by following the notebook, you may use Gradio to create a custom GUI like the one created by me.

Description:

The application is intended to bring forth the sentiment carried by the user's words.

The words are preprocessed, fed into a machine learning model which categorizes it into one of three categories: negative, neutral or positive.

The analysis also provides the percentage confidence of the model regarding the classification in each of the three categories.

The GUI of this project was created using Gradio. The project is hosted in one of the spaces provided by the site Hugging Face🤗.

Screenshots

The site on visiting:

image

The site in action:

ezgif-3-7addcae1f8

Releases

No releases published

Packages

No packages published