Add C++ and Python API for Dolphin CTC models (#2085)
This commit is contained in:
@@ -41,6 +41,9 @@ OnlineRecognizerResult Convert(const OnlineTransducerDecoderResult &src,
|
||||
std::string text;
|
||||
for (auto i : src.tokens) {
|
||||
auto sym = sym_table[i];
|
||||
if (sym == "<unk>") {
|
||||
continue;
|
||||
}
|
||||
|
||||
text.append(sym);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user