Generating Sentences by Editing Prototypes
2017-09-26TACL 2018Code Available0· sign in to hype
Kelvin Guu, Tatsunori B. Hashimoto, Yonatan Oren, Percy Liang
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/kelvinguu/neural-editorOfficialIn paperpytorch★ 0
- worksheets.codalab.org/worksheets/0xa915ba2f8b664ddf8537c83bde80cc8cOfficialnone★ 0
- github.com/jiacheng-xu/vmf_vae_nlppytorch★ 0
Abstract
We propose a new generative model of sentences that first samples a prototype sentence from the training corpus and then edits it into a new sentence. Compared to traditional models that generate from scratch either left-to-right or by first sampling a latent sentence vector, our prototype-then-edit model improves perplexity on language modeling and generates higher quality outputs according to human evaluation. Furthermore, the model gives rise to a latent edit vector that captures interpretable semantics such as sentence similarity and sentence-level analogies.