k2-fsa / kaldi-decoder

Decoders from Kaldi using OpenFst
Apache License 2.0
22 stars 3 forks source link

Introduction

This repository ports the C++ decoder code from Kaldi using OpenFst without depending on Kaldi.

Usage

Please first install it using

pip install kaldi-decoder

and see the following examples about CTC decoding:

Description URL
Decoding with H https://github.com/k2-fsa/icefall/blob/master/egs/librispeech/ASR/conformer_ctc/jit_pretrained_decode_with_H.py
Decoding with HL https://github.com/k2-fsa/icefall/blob/master/egs/librispeech/ASR/conformer_ctc/jit_pretrained_decode_with_HL.py
Decoding with HLG https://github.com/k2-fsa/icefall/blob/master/egs/librispeech/ASR/conformer_ctc/jit_pretrained_decode_with_HLG.py