LexiconFreeSeq2SeqDecoderOptions
LexiconFreeSeq2SeqDecoderOptions
LexiconFreeSeq2SeqDecoderOptions
flashlighttext::Decoder -> LexiconFreeSeq2SeqDecoderOptions
beam_sizeMaximum number of hypothesis we hold after each step
beam_size_tokenMaximum number of tokens we consider at each step
beam_thresholdThreshold to prune hypothesis
lm_weightWeight of lm
eos_scoreSilence insertion score
log_addIf or not use logadd when merging hypothesis
ptrset and get the pointer to a LexiconFreeSeq2SeqDecoderOptions instance.
new()LexiconFreeSeq2SeqDecoderOptions$new(
beam_size,
beam_size_token,
beam_threshold,
lm_weight,
eos_score,
log_add
)beam_sizeMaximum number of hypothesis we hold after each step
beam_size_tokenMaximum number of tokens we consider at each step
beam_thresholdThreshold to prune hypothesis
lm_weightWeight of lm
eos_scoreScore for inserting an EOS
log_addIf or not use logadd when merging hypothesis
clone()The objects of this class are cloneable with this method.
LexiconFreeSeq2SeqDecoderOptions$clone(deep = FALSE)deepWhether to make a deep clone.