… get_translations functions for getting multiple translations
Note that there is no optimisation done for a call to translate (single translation return) with n_best greater than 1 (optimisation would be to set n_best to 1). Perhaps options such as n_best and beam_size should be moved from the Translator builder/constructor to parameters in the translate/get_translations methods.
… get_translations functions for getting multiple translations
Note that there is no optimisation done for a call to
translate
(single translation return) withn_best
greater than 1 (optimisation would be to setn_best
to 1). Perhaps options such asn_best
andbeam_size
should be moved from theTranslator
builder/constructor to parameters in thetranslate
/get_translations
methods.