Skip to content

Instantly share code, notes, and snippets.

@shiyang1983
shiyang1983 / ctc_decoder.py
Created April 19, 2019 23:44 — forked from awni/ctc_decoder.py
Example CTC Decoder in Python
"""
Author: Awni Hannun
This is an example CTC decoder written in Python. The code is
intended to be a simple example and is not designed to be
especially efficient.
The algorithm is a prefix beam search for a model trained
with the CTC loss function.