All Projects → StatguyUser → Flask-Deep-Learning-NLP-API

StatguyUser / Flask-Deep-Learning-NLP-API

Licence: other
Flask API to productize a document classification model. Classification model was built using Keras with tensorflow backend

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Flask-Deep-Learning-NLP-API

lingvo--Ner-ru
Named entity recognition (NER) in Russian texts / Определение именованных сущностей (NER) в тексте на русском языке
Stars: ✭ 38 (+46.15%)
Mutual labels:  nlp-machine-learning
lingua-go
👄 The most accurate natural language detection library for Go, suitable for long and short text alike
Stars: ✭ 684 (+2530.77%)
Mutual labels:  nlp-machine-learning
Nuts
自然语言处理常见任务(主要包括文本分类,序列标注,自动问答等)解决方案试验田
Stars: ✭ 21 (-19.23%)
Mutual labels:  nlp-machine-learning
Water-classifier-fastai
Deploy your Flask web app classifier on Heroku which is written using fastai library.
Stars: ✭ 37 (+42.31%)
Mutual labels:  flask-api
scraped-tvtime-api
A free TVTime API based on scraping TVTime website. No API key required
Stars: ✭ 23 (-11.54%)
Mutual labels:  flask-api
lucene-geo-gazetteer
Uses Apache Lucene, OpenNLP and geonames and extracts locations from text and geocodes them.
Stars: ✭ 34 (+30.77%)
Mutual labels:  nlp-machine-learning
ake-datasets
Large, curated set of benchmark datasets for evaluating automatic keyphrase extraction algorithms.
Stars: ✭ 125 (+380.77%)
Mutual labels:  nlp-machine-learning
memology
Memes - why so popular?
Stars: ✭ 32 (+23.08%)
Mutual labels:  nlp-machine-learning
NLP-Natural-Language-Processing
Projects and useful articles / links
Stars: ✭ 149 (+473.08%)
Mutual labels:  nlp-machine-learning
word2vec-tsne
Google News and Leo Tolstoy: Visualizing Word2Vec Word Embeddings using t-SNE.
Stars: ✭ 59 (+126.92%)
Mutual labels:  nlp-machine-learning
datastories-semeval2017-task6
Deep-learning model presented in "DataStories at SemEval-2017 Task 6: Siamese LSTM with Attention for Humorous Text Comparison".
Stars: ✭ 20 (-23.08%)
Mutual labels:  nlp-machine-learning
Hutoma-Conversational-AI-Platform
Hu:toma AI is an open source stack designed to help you create compelling conversational interfaces with little effort and above industry accuracy
Stars: ✭ 35 (+34.62%)
Mutual labels:  nlp-machine-learning
ibm-ai-day
Presentation for IBM Community Day AI
Stars: ✭ 13 (-50%)
Mutual labels:  nlp-machine-learning
phrase-at-scale
Detect common phrases in large amounts of text using a data-driven approach. Size of discovered phrases can be arbitrary. Can be used in languages other than English
Stars: ✭ 115 (+342.31%)
Mutual labels:  nlp-machine-learning
Machine-Learning-Projects-2
No description or website provided.
Stars: ✭ 23 (-11.54%)
Mutual labels:  nlp-machine-learning
text-preprocess-python
Text preprocessing tools in python.
Stars: ✭ 22 (-15.38%)
Mutual labels:  nlp-machine-learning
core
WIP - A personal life helper providing solutions and happiness
Stars: ✭ 17 (-34.62%)
Mutual labels:  nlp-machine-learning
urdu-characters
📄 Complete collection of Urdu language characters & unicode code points.
Stars: ✭ 24 (-7.69%)
Mutual labels:  nlp-machine-learning
MLH-Quizzet
This is a smart Quiz Generator that generates a dynamic quiz from any uploaded text/PDF document using NLP. This can be used for self-analysis, question paper generation, and evaluation, thus reducing human effort.
Stars: ✭ 23 (-11.54%)
Mutual labels:  nlp-machine-learning
oms.py
🔨 A micro-framework for the OMS, and code written in Python 3.6+.
Stars: ✭ 106 (+307.69%)
Mutual labels:  flask-api

Flask-Deep-Learning-NLP-API

This is built for windows 10

Flask API to productize a document classification model. Classification model was built using Keras with tensorflow backend. Make sure to install all dependencies, which are listed below

  1. Python 3
  2. flask, numpy, keras, tensorflow, pickle, logging.

We will need the checkpointed exported model .json and .h5 extension files. We will also need the original tokenizer used during model training process.

To initialize api, edit the api.py file and provide path for folder where model and tokenizer are saved. In the command line in windows, navigate to folder where app.py is saved locally. in the command line, type python app.py to launch the API.

To access API for prediction purpose, URL is http://localhost:5000/predict?text=. Prediction text can be specified afterthis line. Below is an example of how to do this using requests library in Python using post method. Output will be in the form of JSON.

import requests

example_text = "A complete Bust: This game requires quicktime 5.0 to work...if you have a better version of quicktime (I have 7.5), it will ask you to install the quicktime available on the CD...if you click no, it will not let you play. So, I begrudgingly clicked yes on the third try, and it installed quicktime 5, THEN it tells me to please install the quicktime available on the disc. It KEPT telling me that, even after I uninstalled my version of quicktime 7.5, and reinstalled Barbie Rapunzel and quicktime 5. Very frustrating, and the game absolutely will not work for me. It keeps telling me over and over, to install quicktime 5, tho I've been through the installation process repeatedly. It is NOT my "operating system limitations". This is a brand new computer...merely weeks old with all the state of the art contraptions."

requests.post('''http://localhost:5000/predict?text='''+example_text)

Corresponding model files are in my other repo https://github.com/StatguyUser/Amazon-Review-Classification_DeepLearning

Feel free to reach out!!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].