[feature] editor.suggest returns likelihood for each suggestions
jlema opened this issue · comments
John (Juan) Lema commented
Currently editor.suggest returns words or tuples ordered by likelihood.
It would be great to be able to return the actual likelihood to compare likelihoods between suggestions. This could be done by passing the meta=True argument
Sample usage:
sug = editor.suggest('this is a tiny {mask} dog', meta=True)
print(sug.data[0], sug.meta[0])
print(sug.data[0], sug.meta[0])
'cute', 0.98
'yappy', 0.86
Marco Tulio Correia Ribeiro commented
Implemented in 46b7263, but with parameter return_score
and different return format (returns tuple if True)