The easiest, zero configuration way to run the code, open in this Google Colab notebook.
Require Python 3.5+ and Jupyter notebook installed
git clone https://github.com/Tony607/Keras-Text-Transfer-Learning
pip3 install -r requirements.txt
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