Committed by
GitHub
Updated hypothesis key generation to be the same as sherpa (#226)
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -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(); |
-
请 注册 或 登录 后发表评论