kbiondo / sentiment-analysis-api

Api for sentiment analysis using flask, scikit-learn and docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sentiment Analysis API

Api for sentiment analysis using flask

  • Create image: docker-compose build

  • Containers running docker-compose up -d

  • Testing curl -X POST -H "Content-Type: application/json" \ -d '{"text": "Text Here"}' \ http://localhost:5000/predict

If you wish you can run the application in a virtual env

  • export FLASK_APP=app.py
  • flask run

About

Api for sentiment analysis using flask, scikit-learn and docker

License:MIT License


Languages

Language:Jupyter Notebook 94.7%Language:Python 4.9%Language:Dockerfile 0.5%