forked from mozilla/DeepSpeech
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backported from PR mozilla#2121 Signed-off-by: Li Li <eggonlea@msn.com>
- Loading branch information
Showing
4 changed files
with
152 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef DECODERSTATE_H_ | ||
#define DECODERSTATE_H_ | ||
|
||
#include <vector> | ||
|
||
/* Struct for the beam search output, containing the tokens based on the vocabulary indices, and the timesteps | ||
* for each token in the beam search output | ||
*/ | ||
struct DecoderState { | ||
int space_id; | ||
int blank_id; | ||
std::vector<PathTrie*> prefixes; | ||
PathTrie *prefix_root; | ||
}; | ||
|
||
#endif // DECODERSTATE_H_ |
Oops, something went wrong.