Simple application using T5 base model fine tuned in Quora Question Pairs to generate paraphased questions.
This repository is based on the work from @ramsrigouthamg which explain very well how to fine tune the model.
You will able to create paraphrase using a technique call Back Translate. You can find more info about it here:-https://github.com/google-research/uda
pip install -r requirements.txt
- replace
core_estimator_predictor.py
inyour_env/lib/python3.6/site-packages/tensorflow/contrib/predictor
with the file (core_estimator_predictor.py) in repository. - Download models
wget https://storage.googleapis.com/uda_model/text/back_trans_checkpoints.zip
unzip back_trans_checkpoints.zip && rm back_trans_checkpoints.zip
cd web-app
python app.py
Open your browser http://localhost:8001