This is the rewriter model described in ParaBank (Hu et al. 2019).
Required packages are listed in requirement.txt
. Please download params.best
from the project website and place it under this directory.
Usage: echo -e "This is a test.\tis|test\twas|exam" | ./paraphrase.sh
, where "is" and "test" are negative constraints, and "was" and "exam" are positive constraints.
Please cite the following paper if you would like to use this rewriter in your work:
Hu, J. E., R. Rudinger, M. Post, & B. Van Durme. 2019. ParaBank: Monolingual Bitext Generation and Sentential Paraphrasing via Lexically-constrained Neural Machine Translation. Proceedings of AAAI 2019, Honolulu, Hawaii, January 26 – Feb 1, 2019.
To interact with the monolingual rewriter online, please check out this live demo.