Learn R Programming

flashlighttext (version 0.1.0)

LexiconFreeSeq2SeqDecoder: LexiconFreeSeq2SeqDecoder

Description

LexiconFreeSeq2SeqDecoder

LexiconFreeSeq2SeqDecoder

Arguments

Super class

flashlighttext::Decoder -> LexiconFreeSeq2SeqDecoder

Methods

Inherited methods


Method new()

Usage

LexiconFreeSeq2SeqDecoder$new(
  options,
  lm,
  eos_token_idx,
  emitting_model_update_func,
  max_output_length
)

Arguments

options

an options

lm

a lm

eos_token_idx

an eos_token_idx

emitting_model_update_func

an emitting_model_update_func

max_output_length

a max_output_length

Returns

LexiconFreeSeq2SeqDecoder


Method n_hypothesis()

Usage

LexiconFreeSeq2SeqDecoder$n_hypothesis()

Returns

int


Method clone()

The objects of this class are cloneable with this method.

Usage

LexiconFreeSeq2SeqDecoder$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.