ale3otik / paraphrases-generator

Paraphrases generator based on RAVE.
MIT License
59 stars 10 forks source link

how to generate sentence by source sentence only? #6

Open LoyalCalf opened 4 years ago

LoyalCalf commented 4 years ago

could you tell me how to generate sentence by source sentence only?

ale3otik commented 4 years ago

The simplest way is to pass source sentence as both source and reference inputs.

Also you can modify inference stage so that it uses decoder only, then you sample z ~ N(0,1) as additional input for decoder. In the original paper source sentence generation is not considered, and there is no quality estimation of these methods then.

LoyalCalf commented 4 years ago

Thank you very much!I'll try it