Giter Site home page Giter Site logo

twoogle's Introduction

Twoogle

Twoogle is a Twitter sentiment analysis search engine for retrieving and classifying real-time COVID-19 vaccination-related tweets. The application is powered by DistilBERT fine-tuned on Coronavirus Tweets Dataset.

Quick Start

Included in this repository is a large (> 250 MB) pre-trained model. This model was trained on a subset of the above dataset. First install the Git Large File Storage (Git LFS) extension to retrieve this model during cloning.

Once Git LFS is successfully installed, clone this repository and cd into the root folder:

git clone https://github.com/hadiqa01/Twoogle.git && cd Twoogle/

Run the following commands (preferrably from a Python virtual environment):

  1. pip3 install --upgrade pip
  2. pip3 install -r requirements.txt
  3. python3 main.py

Then go to the following address in your browser:

127.0.0.1:5000/

The webpage is a simple interface that allows you to search for real time tweets using a query of your choice.
For a query with multiple terms, we recommend that you explicitly concatenate the terms:

Using Arbitrary Text

You can also try out the model using copied tweets or text of your choice. To do this, simply run analyze.py with a text string argument from the root folder of the repository (ensure Git LFS is already installed):

python3 analyze.py "Not sure what to think but perhaps the Moderna shots work."
returns
The sentiment for the text 'Not sure what to think but perhaps the Moderna shots work.' is POSITIVE with a probaility of 0.98905.

python3 analyze.py "Does the J&J one-shot vaccine work at all? Asking for a friend."
returns
The sentiment for the text 'Does the J&J one-shot vaccine work at all? Asking for a friend.' is NEGATIVE with a probaility of 0.99597.

Note: The example texts do not necessarily reflect the sentiments (no pun intended) of the team.

twoogle's People

Contributors

hadiqa01 avatar x1489 avatar

Watchers

 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.