Jingzhao Ou
Committed by GitHub

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

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