Skip to content

why first_bytes plus one in path_trie.cpp #1806

Answered by reuben
zh794390558 asked this question in Q&A
Discussion options

You must be logged in to vote

In bytes output mode, label values 0-254 correspond to byte values 1-255. Label value 255 is the CTC blank symbol. The +1 here is hardcoding that assumption into the decoder code. This should definitely have a comment explaining it, so thanks for raising.

See also https://stt.readthedocs.io/en/latest/Decoder.html#bytes-output-mode

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zh794390558
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants