Learn R Programming

flashlighttext (version 0.1.0)

Decoder: Decoder

Description

Decoder

Decoder

Arguments

Value

invisible(NULL)

Active bindings

ptr

set and get the pointer to a Decoder instance.

Methods


Method new()

Decoder is a base class and cannot be initialized directly. It is inherited by other LM classes shuch as KenLM and ZeroLM.

Usage

Decoder$new()


Method decode()

Usage

Decoder$decode(emissions, T, N)

Arguments

emissions

the emissions. Dimension (Batch=1, Time, Ntokens)

T

an integer. Number of tokens (Ntokens).

N

an integer. Number of timesteps (Time).

Returns

invisible(NULL)


Method prune()

Prune the hypothesis space

Usage

Decoder$prune(lookBack = 0)

Arguments

lookBack

an integer. Number of frames to look back.

Returns

invisible(NULL)


Method n_decoded_frames_in_buffer()

Usage

Decoder$n_decoded_frames_in_buffer()

Returns

an integer


Method get_best_hypothesis()

Usage

Decoder$get_best_hypothesis(lookBack = 0)

Arguments

lookBack

an integer. Number of frames to look back.

Returns

a DecodeResult instance


Method get_all_final_hypothesis()

Usage

Decoder$get_all_final_hypothesis()

Returns

list of DecodeResult instances


Method clone()

The objects of this class are cloneable with this method.

Usage

Decoder$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.