Decode

Search

class kospeech.decode.search.BeamSearch(vocab, k)[source]

Provides beam search decoding.

class kospeech.decode.search.GreedySearch(vocab, metric: str = 'char')[source]

Provides greedy search and save result to csv format

Ensemble

class kospeech.decode.ensemble.BasicEnsemble(models)[source]

Basic ensemble decoding.

Decodes using multiple models simultaneously, combining their prediction distributions by adding. All models in the ensemble must share a target characters.

class kospeech.decode.ensemble.Ensemble(models)[source]

Ensemble decoding. Decodes using multiple models simultaneously,

Note

Do not use this class directly, use one of the sub classes.

class kospeech.decode.ensemble.WeightedEnsemble(models, dim=128)[source]

Weighted ensemble decoding.

Decodes using multiple models simultaneously, combining their prediction distributions by weighted sum. All models in the ensemble must share a target characters.