Beam Search

Steps:

  1. Start with <SOS> token
  2. For each step,
    1. Find the top B words with most probabilities, given encoded input X and generated output for this time t, Yt1
    2. Take the top B
    3. Continue to Step 2, unless <EOS> is generated

Related Notes