I have another question: How to control the length of output sentence. In other words, I want to get the output sentence which is fixed length. Which codes I need to change? Can you say in detail? Thank you~
We can add fixed_length and max_length decoding as options. Can you start another thread with a “feature request” flag?
The code to change is in Beam.lua. Currently we use the symbol as a stopping flag. We can generalize that to implement these options.
(As always, PR would be the easiest way to get the code in.)