TensorFlow-Hub Sentence Encoder powered Next Word Prediction Model
IDK if the above description makes sense.. anyways, Lee Mah Oh!
- Install libraries
pip install -r requirements.txt
-
Download TF-Hub universal-sentence-encoder
https://tfhub.dev/google/universal-sentence-encoder/4 (I used version 4 for this project)
-
Set PATH
Create a folder named universal-sentence-encoder and extract the downloaded rar into it.
-
Try out your luck
python app.py
Yo! You can check out the original project here:
https://colab.research.google.com/drive/1r2ma5P7w2LE30L1o5mAyNPLE7Qi3JxoL?usp=sharing%27
Urghh.. Literally I am busy rn so I didn't add an hyperlink.. send a PR, samritan.
Don't forget, It's October and there's a HacktoberFest!