speechbrain.k2_integration

Package providing k2-fsa integration.

Intended loading manner:

>>> import speechbrain.k2_integration as sbk2
>>> # Then use: sbk2.graph_compiler.CtcGraphCompiler for example

speechbrain.k2_integration.graph_compiler

Graph compiler class to create, store, and use k2 decoding graphs in speechbrain.

speechbrain.k2_integration.lattice_decoder

Different decoding graph algorithms for k2, be it HL or HLG (with G LM and bigger rescoring LM).

speechbrain.k2_integration.lexicon

Lexicon class and utilities.

speechbrain.k2_integration.losses

This file contains the loss functions for k2 training.

speechbrain.k2_integration.prepare_lang

This module contains functions to prepare the lexicon and the language model for k2 training.

speechbrain.k2_integration.utils

Utilities for k2 integration with SpeechBrain.