flashlight/app/asr/tutorial/InferenceCTC.cpp - Code query #731
-
Is the Trie created includes just the Unigram and a single word pronunciation that is extracted from the lexicon ? flashlight/app/asr/tutorial/InferenceCTC.cpp: line 167
I'm probably reading it wrongly, but I can't see were the NGram is used. |
Beta Was this translation helpful? Give feedback.
Answered by
tlikhomanenko
Sep 1, 2021
Replies: 1 comment
-
Yep, it is building only unigram Trie. The ngram LM is used inside decoder itself when the leaf of trie is reached. See for example https://github.com/flashlight/flashlight/blob/master/flashlight/lib/text/decoder/LexiconDecoder.cpp#L124-L127 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TzurV
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep, it is building only unigram Trie. The ngram LM is used inside decoder itself when the leaf of trie is reached. See for example https://github.com/flashlight/flashlight/blob/master/flashlight/lib/text/decoder/LexiconDecoder.cpp#L124-L127