tensorflow / nmt

TensorFlow Neural Machine Translation Tutorial
Apache License 2.0
6.37k stars 1.96k forks source link

Accessing the logits during beam search #318

Open Rosenswagger opened 6 years ago

Rosenswagger commented 6 years ago

I'd like to view the relative probabilities for each inference made through beam search. I think this is as simple as a softmax of the logits at each step, but I can't figure out where to implement this. Has anyone tried this?

Ex: Instead of output: 1st Beam Option 2nd Beam Option 3rd Beam Option

I'd like: 1st Beam Option (60%) 2nd Beam Option (20%) 3rd Beam Option (10%)