Decoder
Decoder
invisible(NULL)
ptrset and get the pointer to a Decoder instance.
new()Decoder is a base class and cannot be initialized directly. It is inherited by other LM classes shuch as KenLM and ZeroLM.
Decoder$new()
decode()Decoder$decode(emissions, T, N)emissionsthe emissions. Dimension (Batch=1, Time, Ntokens)
Tan integer. Number of tokens (Ntokens).
Nan integer. Number of timesteps (Time).
invisible(NULL)
prune()Prune the hypothesis space
Decoder$prune(lookBack = 0)lookBackan integer. Number of frames to look back.
invisible(NULL)
n_decoded_frames_in_buffer()Decoder$n_decoded_frames_in_buffer()an integer
get_best_hypothesis()Decoder$get_best_hypothesis(lookBack = 0)lookBackan integer. Number of frames to look back.
a DecodeResult instance
get_all_final_hypothesis()Decoder$get_all_final_hypothesis()list of DecodeResult instances
clone()The objects of this class are cloneable with this method.
Decoder$clone(deep = FALSE)deepWhether to make a deep clone.