speechbrain.integrations.k2_fsa

Package providing k2-fsa integration.

Intended loading manner:

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

speechbrain.integrations.k2_fsa.align

Force alignment using k2 for CTC models.

speechbrain.integrations.k2_fsa.graph_compiler

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

speechbrain.integrations.k2_fsa.lattice_decoder

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

speechbrain.integrations.k2_fsa.lexicon

Lexicon class and utilities.

speechbrain.integrations.k2_fsa.losses

This file contains the loss functions for k2 training.

speechbrain.integrations.k2_fsa.prepare_lang

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

speechbrain.integrations.k2_fsa.utils

Utilities for k2 integration with SpeechBrain.