Learn R Programming

flashlighttext (version 0.1.0)

LexiconFreeSeq2SeqDecoderOptions: LexiconFreeSeq2SeqDecoderOptions

Description

LexiconFreeSeq2SeqDecoderOptions

LexiconFreeSeq2SeqDecoderOptions

Arguments

Value

LexiconFreeSeq2SeqDecoderOptions

Super class

flashlighttext::Decoder -> LexiconFreeSeq2SeqDecoderOptions

Active bindings

beam_size

Maximum number of hypothesis we hold after each step

beam_size_token

Maximum number of tokens we consider at each step

beam_threshold

Threshold to prune hypothesis

lm_weight

Weight of lm

eos_score

Silence insertion score

log_add

If or not use logadd when merging hypothesis

ptr

set and get the pointer to a LexiconFreeSeq2SeqDecoderOptions instance.

Methods

Inherited methods


Method new()

Usage

LexiconFreeSeq2SeqDecoderOptions$new(
  beam_size,
  beam_size_token,
  beam_threshold,
  lm_weight,
  eos_score,
  log_add
)

Arguments

beam_size

Maximum number of hypothesis we hold after each step

beam_size_token

Maximum number of tokens we consider at each step

beam_threshold

Threshold to prune hypothesis

lm_weight

Weight of lm

eos_score

Score for inserting an EOS

log_add

If or not use logadd when merging hypothesis


Method clone()

The objects of this class are cloneable with this method.

Usage

LexiconFreeSeq2SeqDecoderOptions$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.