speechbrain.k2_integration

提供k2-fsa集成的包。

预期的加载方式:

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

speechbrain.k2_integration.graph_compiler

图编译器类,用于在speechbrain中创建、存储和使用k2解码图。

speechbrain.k2_integration.lattice_decoder

k2的不同解码图算法,无论是HL还是HLG(带有G LM和更大的重评分LM)。

speechbrain.k2_integration.lexicon

词典类和工具。

speechbrain.k2_integration.losses

此文件包含用于k2训练的损失函数。

speechbrain.k2_integration.prepare_lang

该模块包含用于为k2训练准备词典和语言模型的函数。

speechbrain.k2_integration.utils

用于k2与SpeechBrain集成的工具。