This project is a simple Sentiment Analysis Tool that uses the VADER model from nltk to classify text as Positive, Neutral, or Negative. It provides a user-friendly interface built with Gradio for easy interaction.
- Simple user interface to input custom text for sentiment analysis.
- Pre-built examples for testing different sentiment categories.
- JSON output displaying sentiment and individual sentiment scores.
You can run this demo on Hugging Face Spaces: [https://huggingface.co/spaces/JohnJoelMota/Sentiment_Analysis].
This project is a Sentiment Analysis Tool built using VADER (VADER sentiment analysis tool) from the nltk library to classify text as Positive, Neutral, or Negative. It features an easy-to-use interface powered by Gradio.
The text is analyzed, and the sentiment is categorized as:
- Positive if the sentiment score > 0.1
- Negative if the sentiment score < -0.1
- Neutral otherwise
-
Clone the repository:
git clone https://github.com/yourusername/sentiment-analysis-reddit.git cd sentiment-analysis-reddit
-
Install dependencies:
pip install -r requirements.txt
-
Run the application:
python app.py
-
Access the Gradio interface on your local machine through the provided URL (usually
http://localhost:7860
).
This file contains the main code to run the sentiment analysis app using Gradio. It includes functions for analyzing text sentiment using the VADER tool and a simple interface to input text and view sentiment results.
Lists the dependencies required to run the project:
pandas
numpy
nltk
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.