Skip to content

si-m/fproject_serv

Repository files navigation

fproject Sentiment API

Arquitecture

Sentiment Api

Tensorflow Serving

Ones we have the trained model we need to load the model in the Tensorflow Serving Api and it will produce a gRPC server that we and interact with.

It's a little bit tricky and i recomend to use this tutorials:

gRPC Api

Now that we have our tensorflow model handle by the TF Api we have to make a client to talk to it.

Dependencies

  • python 3.6
  • gensim
  • tensorflow
  • nltk
  • grpcio
  • grpcio-tools

Download spanish word2vec model:

$ wget http://cs.famaf.unc.edu.ar/~ccardellino/SBWCE/SBW-vectors-300-min5.bin.gz
$ gunzip SBW-vectors-300-min5.bin.gz

Simple set up

  • Modify the Tensorflow Api host and port values

Usage

Clone this project.

$ cd fproject
$ python api.py

Full System Arquitecture

System

NODE SERVER

FRONT-END REACT APP

About

Sentiment Prediction Api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages