facebookresearch / XLM

PyTorch original implementation of Cross-lingual Language Model Pretraining.
Other
2.87k stars 495 forks source link

Generate multiple optimal results(beam search) #344

Open Zhw098 opened 2 years ago

Zhw098 commented 2 years ago

Hi, I'm using the beam search script, but I want to generate the top ten best results, not just one. Tried a lot but didn't get it, need your help. Thanks