diff --git a/native_client/ctcdecode/path_trie.cpp b/native_client/ctcdecode/path_trie.cpp index f4c77320..ebb4d924 100644 --- a/native_client/ctcdecode/path_trie.cpp +++ b/native_client/ctcdecode/path_trie.cpp @@ -104,6 +104,8 @@ void PathTrie::get_path_vec(std::vector& output) { // correct order as we walk back down the stack in the lines below. if (parent != nullptr) { parent->get_path_vec(output); + } + if (character != ROOT_) { output.push_back(character); } }