Giter Site home page Giter Site logo

tafoca / sentiment-analysis-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from g-paras/sentiment-analysis-api

0.0 0.0 0.0 1.71 MB

This is a machine learning based sentiment analysis web application using python's nltk library and deployed using flask api on Heroku server.

Home Page: https://sentiment-analysis-web-app.herokuapp.com

JavaScript 3.40% Python 50.86% CSS 14.44% HTML 31.30%

sentiment-analysis-api's Introduction

Sentiment Analysis

This is a sentiment analysis web applications, we have used nltk tweet sample for training model and Naive bais classier and deployed using flask api on heroku server. For training and testing our sentiment analysis model we used Google colaboratory which is an open source platform for machine learning or data science projects. It helps us training the model fast by using virtual GPU. For HTML and CSS we use Microsoft VS Code which is a great code editor with syntax highlighting, emmit abbreviations and much more. Python dependencies used:-

  1. Keras
  2. Flask 1.2.2
  3. TextBlob 0.15.3
  4. Gunicorn 20.0.4
  5. Numpy 1.9.0
  6. Regex 2020.6.8
  7. NLTK 3.5

Check it out on https://sentiment-analysis-web-app.herokuapp.com

It might take few seconds to load please give it a try

Files and folder classification

  • static folder contains all the images used
  • templates folder has all html templates
  • requirement.txt contains the python dependencies used in this project
  • nltk.txt has the files which need to be downloaded for processing the input text
  • Procfile is configuration file for Heroku server
  • app.py is the flask application file
  • model_nltk.py contains the source code for the Naive Bayes classifer which has been used in the production
  • model_keras.py is another source code for model usign keras but we haven't used this in production because of its accuracy.

Updates

  • Implemented some async js to make predictions faster and avoid reloading using jquery

  • The above mentioned feature is in beta version, you can check it our here

  • Added session object to remember admin credentials for short amount of time.

  • Now you can upload a test file of reviews and then it will show you the graph of the predicted sentiments. Check it out here

  • Implemented custom scroll bar, now it looks kind of cool and now you can use it as a pwa, go to 'add to screen' and then it will be a standalone chrome app

sentiment-analysis-api's People

Contributors

g-paras avatar dependabot[bot] 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.