LexiconSeq2SeqDecoderOptions
LexiconSeq2SeqDecoderOptions
LexiconSeq2SeqDecoderOptions
flashlighttext::Decoder -> LexiconSeq2SeqDecoderOptions
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
word_scoreWord insertion score
eos_scoreScore for inserting an EOS
log_addIf or not use logadd when merging hypothesis
ptrset and get the pointer to a LexiconSeq2SeqDecoderOptions instance.
new()LexiconSeq2SeqDecoderOptions$new(
beam_size,
beam_size_token,
beam_threshold,
lm_weight,
word_score,
eos_score,
log_add
)beam_sizean integer. Maximum number of hypothesis we hold after each step
beam_size_tokenan integer. Maximum number of tokens we consider at each step
beam_thresholda numeric. Threshold to prune hypothesis
lm_weighta numeric. Weight of lm
word_scorea numeric. Word insertion score
eos_scorea numeric. Score for inserting an EOS
log_adda logical. If or not use logadd when merging hypothesis
clone()The objects of this class are cloneable with this method.
LexiconSeq2SeqDecoderOptions$clone(deep = FALSE)deepWhether to make a deep clone.