Giter Club home page Giter Club logo

sentiment-app's Introduction

Sentiment Analysis App ❤️🔥🫶

This is a simple web application built with Streamlit for performing sentiment analysis on text input. It uses the Natural Language Toolkit (NLTK) library and the VADER sentiment analysis model.

Installation

  1. Clone the repository:
git clone https://github.com/your-username/sentiment-analysis-app.git
  1. Navigate to the project directory:
cd sentiment-analysis-app
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Run the application:
streamlit run app.py

This will launch the application in your default web browser.

Usage

Enter the text you want to analyze in the text area provided.

Click the "Predict Sentiment" button to perform sentiment analysis on the input text.

The predicted sentiment will be displayed below the button with color and style indicating the sentiment result:

  • Positive sentiment: Green color, normal weight, and font size 15px.

  • Negative sentiment: Red color, bold weight, and font size 15px.

  • Neutral sentiment: Light blue color, normal weight, and font size 15px.

Demo

  • This is the 1st visiting page which welcomes you

img.png

  • Enter any text and press the Predict Sentiment button.

img_1.png

Note

  • The same app in flask can look like this :

img_2.png

  • Enter some text

img_3.png

  • The predicted the sentiment

img_4.png

Example

Sentiment Analysis App

Credits

  • The application is built using Streamlit, a Python library for creating web applications.

  • Sentiment analysis is performed using the NLTK library and the VADER sentiment analysis model.

Find the FLASK app of the same here

https://sentiment-app2.onrender.com/

sentiment-app's People

Contributors

flyfir248 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.