Vocabs

Vocab

class lightning_asr.vocabs.vocab.Vocabulary(*args, **kwargs)[source]

Note

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

LibriSpeech Vocab

class lightning_asr.vocabs.librispeech.LibriSpeechVocabulary(model_path: str, vocab_size: int)[source]

Converts label to string for librispeech dataset.

Parameters
  • model_path (str) – path of sentencepiece model

  • vocab_size (int) – size of vocab