lvapeab / nmt-keras

Neural Machine Translation with Keras
http://nmt-keras.readthedocs.io
MIT License
532 stars 130 forks source link

How to get the N-best lists and to rerank them? #81

Closed brentylw closed 5 years ago

brentylw commented 5 years ago

I am new to nmt and excited to run main.py successfully. I am interested in the N-best lists but don't know how to draw them out. Thanks.

lvapeab commented 5 years ago

You have to pass the option --n-best to the sample_ensemble.py script. For more information, see this: https://github.com/lvapeab/nmt-keras/blob/master/examples/documentation/ensembling_tutorial.md