MCPcopy Create free account
hub / github.com/binbinjiang/CVT-SLR / prefix_compare

Function prefix_compare

ctcdecode/ctcdecode/src/decoder_utils.cpp:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122bool prefix_compare(const PathTrie *x, const PathTrie *y) {
123 if (x->score == y->score) {
124 if (x->character == y->character) {
125 return false;
126 } else {
127 return (x->character < y->character);
128 }
129 } else {
130 return x->score > y->score;
131 }
132}
133
134bool prefix_compare_external_scores(const PathTrie *x, const PathTrie *y,
135 const std::unordered_map<const PathTrie*, float>& scores) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected