Learn R Programming

flashlighttext (version 0.1.0)

LexiconSeq2SeqDecoderOptions: LexiconSeq2SeqDecoderOptions

Description

LexiconSeq2SeqDecoderOptions

LexiconSeq2SeqDecoderOptions

Arguments

Value

LexiconSeq2SeqDecoderOptions

Super class

flashlighttext::Decoder -> LexiconSeq2SeqDecoderOptions

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

word_score

Word insertion score

eos_score

Score for inserting an EOS

log_add

If or not use logadd when merging hypothesis

ptr

set and get the pointer to a LexiconSeq2SeqDecoderOptions instance.

Methods

Inherited methods


Method new()

Usage

LexiconSeq2SeqDecoderOptions$new(
  beam_size,
  beam_size_token,
  beam_threshold,
  lm_weight,
  word_score,
  eos_score,
  log_add
)

Arguments

beam_size

an integer. Maximum number of hypothesis we hold after each step

beam_size_token

an integer. Maximum number of tokens we consider at each step

beam_threshold

a numeric. Threshold to prune hypothesis

lm_weight

a numeric. Weight of lm

word_score

a numeric. Word insertion score

eos_score

a numeric. Score for inserting an EOS

log_add

a logical. If or not use logadd when merging hypothesis


Method clone()

The objects of this class are cloneable with this method.

Usage

LexiconSeq2SeqDecoderOptions$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.