Skip to content

Commit

Permalink
Updated hypothesis key generation to be the same as sherpa (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
jingzhaoou authored Jul 28, 2023
1 parent a12252a commit daffdab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sherpa-onnx/csrc/hypothesis.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ struct Hypothesis {
std::string Key() const {
// TODO(fangjun): Use a hash function?
std::ostringstream os;
std::string sep = "-";
std::string sep;
for (auto i : ys) {
os << i << sep;
os << sep << i;
sep = "-";
}
return os.str();
Expand Down

0 comments on commit daffdab

Please sign in to comment.