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:
-
How to Deploy a Tensorflow Model to Production by Siraj Raval
-
How to deploy Machine Learning models with TensorFlow by Vitaly Bezgachev
Now that we have our tensorflow model handle by the TF Api we have to make a client to talk to it.
- python 3.6
- gensim
- tensorflow
- nltk
- grpcio
- grpcio-tools
$ wget http://cs.famaf.unc.edu.ar/~ccardellino/SBWCE/SBW-vectors-300-min5.bin.gz
$ gunzip SBW-vectors-300-min5.bin.gz- Modify the Tensorflow Api host and port values
Clone this project.
$ cd fproject
$ python api.py
