Code for EMNLP2023 paper "A Quality-based Syntactic Template Retriever for Syntactically-controlled Paraphrase Generation".
We use the QQPPos and ParaNMT datasets for our experiments and retain the same split with SGCP. You can download the data from Data.
Due to the limitation of file size, I will email you the processed data if you need it. Please contact with me (23111135@bjtu.edu.cn).
bash fast-train-roberta.sh
bash select.sh
After obtaining the retrieved templates, you can utilize any syntactically-controlled paraphrase generation models to generate paraphrases.
If you have any questions, please create an issue or email me.