Git Product home page Git Product logo

tweetz's Introduction

๐Ÿ“ Sentiment Analysis Web App

Sentiment Analysis Web App

๐Ÿ” Overview

In this project, I've developed a sophisticated sentiment analysis model tailored specifically to categorize tweets into positive, neutral, or negative sentiments. Understanding the importance of deciphering public opinion and emotional nuances expressed on social media platforms, my model excels in capturing subtle sentiment variations. I've integrated this model into an intuitive Web Application using Gradio, allowing users to easily input tweets and receive instantaneous sentiment analysis results.

๐Ÿ“ Working

LLaMA2 7B

Naive Bayes classifies tweets into three sentiment categories based on word frequencies. Then, LLaMA2 7B, a language model, generates additional insights by analyzing the context and semantics of the tweets. This combined approach utilizes probabilistic classification and advanced language understanding to provide comprehensive sentiment analysis results, enhancing the depth and accuracy of sentiment interpretation.Understanding the pivotal role of discerning public sentiment on social media, my model excels in capturing nuanced emotional tones.

Evaluation Metrics

In evaluating the sentiment analysis model based on Naive Bayes and LLaMA2 7B architecture, key metrics such as accuracy, precision, recall, and F1 score were employed, alongside the examination of the confusion matrix. Leveraging a diverse dataset of tweets, the model demonstrated high precision and recall, indicating its proficiency in accurately classifying sentiments. The analysis highlighted the model's effectiveness in capturing nuanced sentiment variations, affirming its suitability for real-world sentiment analysis tasks.

๐Ÿš€ Instructions for Local Execution

To run the Sentiment Analysis Web App on your local machine, follow these steps:

  1. Clone the Repository: Begin by cloning the project repository to your local machine using the command:

    git clone https://github.com/Tejas911/tweetZ.git
  2. Navigate to the Project Directory: Change into the project directory:

    cd 
  3. Run the Jupyter Notebook: Run the jupyter notebook and enter your API Key.

  4. Access the Web App: Click on the URL generated by the last code snippet to interact with the Sentiment Analysis Web App. A demo of the app in action is available below:

Web App Demo

Enjoy exploring the app and classifying tweets!

๐Ÿ”— Additional Resources

  • ๐ŸŒ Kaggle Notebook: Interested in a Kaggle environment? Explore the notebook
  • ๐ŸŒ Dataset Source: Available on
  • ๐Ÿค LLM: Hugging Face - LLaMA2 7B

tweetz's People

Contributors

tejas911 avatar adityakapole 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.