fairseq icon indicating copy to clipboard operation
fairseq copied to clipboard

how to generate output using generate.py without shuffling?

Open kaushal0494 opened this issue 6 years ago • 2 comments

@myleott I am trying to use the mBART generative interface to generated output in the Hindi language (from English). I fine-tuning the model with English-Hindi parallel dataset and results are good.

For my ongoing work, what I want is: "can we generate the Hindi output such that the order of sentences should not be change after generation? (i.e., English sentence order and generated Hindi sentence order should be same, there should not be any shuffling)" How can we achieve the same? Waiting for your response. Thank you!

kaushal0494 avatar Aug 29 '20 03:08 kaushal0494

You should try fairseq-interactive. It generates the output in the same order.

michaelsalam avatar Aug 29 '20 04:08 michaelsalam

Thanks, @masonreznov

kaushal0494 avatar Aug 29 '20 18:08 kaushal0494