![]() Python - save model import tensorflowjs as tfjs _keras_model(model, tfjs_target_dir) Afterwards, I converted it as a tensorflow.js model. The model’s task is to perform sentiment analysis and to turn short sentences into a sentiment score ranging from 0 (negative sentiment) to 1 (positive sentiment). I followed all the steps to quickly train a small model from scratch. So instead of relying on TensorHub, I decided to rely on this tutorial. I was not really in favor of rewriting it in Javascript. It relies on HuggingFace, a library written in Python. Secondly, the tokeniser which is the piece of code that turns the letters, words, sentences into inputs the function can understand. ![]() It focuses on size/performance optimisation by using quantization techniques. In that regard, it looks like work is being done in reducing the size of the models with Tensorflow Lite. I do not think my users will wait for the 1gb of parameters to download. ![]() ![]() I wanted to give a try at BERT Questions&Answering, but I encountered a couple of issues.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |