Keras + Universal Sentence Encoder = Transfer Learning for text data.
Run Colab notebook
The easiest, zero configuration way to run the code, open in this Google Colab notebook.
How to Run on local machine
Require Python 3.5+ and Jupyter notebook installed
Clone or download this repo
git clone https://github.com/Tony607/Keras-Text-Transfer-Learning
Install required libraries
pip3 install -r requirements.txt
Run the notebook
In the project directory, start a command line, then run command
jupyter notebook
In the opened browser window choose
Transfer Learning - Semantic Similarity with TF-Hub Universal Encoder.ipynb