rpryzant / delete_retrieve_generate

PyTorch implementation of the Delete, Retrieve Generate style transfer algorithm
MIT License
132 stars 26 forks source link

src and tgt in data preparation? #13

Closed kkenealy closed 4 years ago

kkenealy commented 4 years ago

Hi,

Could you clarify what are the intended uses of the source and target files in the data preparation section in the README? I'm a bit confused, because it seems like in the reference paper, there is no target sentence for each source sentence, but rather just sentences and labels. If so, what should be the source and target here? Thank you!

rpryzant commented 4 years ago

Thanks for asking! src and tgt denote sentences belonging to each label type.

For example positive reviews could be label A and negative could be label B. Then you could set src = A's and tgt = B's.