Created by: lcy-seso
Beam search has not been tested and verified yet. We need to test it and give an example of how to use the standard beam search to generate the sequence.