bairathirahul / eight2x

Twitter feeds classification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

In this project, we have picked iPhoneX as our product for the analysis. We have gathered user’s tweets since February and have performed Sentiment Analysis and Summarization on them. This project covers user’s feedback about the new features and price of the iPhone X.

Note: The application is hosted on a cloud server and can be accessed with the URL http://82x.rahulb.me

System Requirements

Setup Instructions

Jobs to read Tweets

There are several jobs that can be configured (but not mandatory to run only once) to read tweets and run models. The command to setup those jobs on a Linux or Mac system are

  • Read Tweet Stream - nohup python manage.py twitter_stream &
  • Estimate Tweet Country - nohup python manage.py predict_country &
  • Sentiment Analysis - nohup python manage.py predict_sentiment &
  • Predict Labels - nohup python manage.py predict_label &

Project Structure

  • eight2x: Project level configuration of the Django app

    • settings.py: consists of global settings like the API key used by all apps inside this project
    • urls.py: defines the routes of this projects. The default path leads to eight2x_app application
    • wsgi.py: defines the config to run application with Apache HTTP mod_wsgi (reference: https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/modwsgi/)
  • eight2x_app: Main application

    • dataset: contains model training dataset. Only for sentiment classification, external dataset has been used, for other models manually labeled data is prepared in the database
    • lib: supporting classes and functions used by the application
    • management: contains the command line commands which can be executed as python manage.py <command file name without .py>
    • migrations: migrations to create the database structure
    • templates: defines the UI templates
    • admin.py: not used by the application
    • apps.py: Application specific configuration
    • models.py: models defined in the application
    • urls.py: routing URLs of this application
    • views.py: controllers defined in the application
  • static: folder for the static files

About

Twitter feeds classification


Languages

Language:Python 70.3%Language:HTML 21.3%Language:JavaScript 8.4%