nmt icon indicating copy to clipboard operation
nmt copied to clipboard

How to choose second or third likely word as the output

Open minyuj opened this issue 6 years ago • 0 comments

Like this issue https://github.com/tensorflow/nmt/issues/219#issue-284092935

Generally, we choose the most likely word, the id associated with the maximum logit value, as the emitted word (this is the "greedy" behavior). But in some cases, I want to choose the least likely word as the output, how should I modify the code?

I have a similar question. How to select the second, third ... likely word?

minyuj avatar Apr 24 '19 05:04 minyuj