Connectionist Temporal Classification (CTC) decoding algorithms: best path, beam search, lexicon search, prefix search, and token passing. Implemented in Python.
817
stars
182
forks
source link
beam_search.py don't support batch data #8
Closed
huangnengCSU closed 5 years ago
def ctcBeamSearch(mat, classes, lm, beamWidth=25): blankIdx = len(classes) maxT, maxC = mat.shape
the matrix only have 2 dimension(length, char_size), don't have batch dimension.