Coder Social home page Coder Social logo

mps24-7uk / review_api Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 94 KB

Python Flask based review-bot api with Natural Language Understanding and Artificial Intelligence.

Python 100.00%
natural-language-processing machine-learning flask-restful flask-sqlalchemy serialization prediction heroku flask-restapi

review_api's Introduction

Review Bot Api

Introducton

ML Based Review Api designed to handle reviews given by User(customers) and Predict whether the Review is positive or negative

In addition to the pure API implementation from Scratch, a number of high-level classes to make the development of API easy and straightforward.

Dependencies Required Modules

  1. nltk
  2. regex
  3. scipy
  4. numpy
  5. pandas
  6. sklearn
  7. Flask
  8. Flask-RESTful
  9. FLask-SQLALchemy
  10. uwsgi
  11. psycopg

Methodology/Principal

It consists of two important steps : Creating and Production

1. Creation

Train the Model Using Historical Dataset and test Accuracy the Model

How to train and test the Model

2. Production

Serialization & Deserialization

In the context of data storage, serialization is the process of translating data structures or object state into a format that can be stored.

This is done to reduce the size and complexity of dataset and which reduces the time of re-execution.

Creating an API using Flask

There are three important parts in constructing our wrapper function, Apicall():

  • Getting the request data enter by user (for which predictions are to be made)
  • Loading our pickled estimator
  • jsonify our predictions and send the response back

Deployment

Heroku is a cloud platform based on a managed container system, with integrated data services and a powerful ecosystem, for deploying and running modern apps.

Deployment Involves following process:

  • Create Application
  • Provid GitHub Connection
  • Select Python as Build Packages
  • Heruko Postreg:: DataBase
  • Deploy Application

review_api's People

Contributors

mps24-7uk avatar

Stargazers

 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.