Updated hypothesis key generation to be the same as sherpa (#226)

This commit is contained in:
Jingzhao Ou
2023-07-27 23:19:49 -07:00
committed by GitHub
parent a12252a01d
commit daffdab52a

View File

@@ -60,9 +60,9 @@ struct Hypothesis {
std::string Key() const { std::string Key() const {
// TODO(fangjun): Use a hash function? // TODO(fangjun): Use a hash function?
std::ostringstream os; std::ostringstream os;
std::string sep = "-"; std::string sep;
for (auto i : ys) { for (auto i : ys) {
os << i << sep; os << sep << i;
sep = "-"; sep = "-";
} }
return os.str(); return os.str();