summaryrefslogtreecommitdiff
path: root/decoder/dict.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/dict.h')
-rw-r--r--decoder/dict.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/dict.h b/decoder/dict.h
index e0ac9abd..38231db6 100644
--- a/decoder/dict.h
+++ b/decoder/dict.h
@@ -39,7 +39,7 @@ class Dict {
std::string word= "";
for (std::vector<std::string>::const_iterator it=words.begin();
it != words.end(); ++it) {
- if (it != words.begin()) word += "|||";
+ if (it != words.begin()) word += " ||| ";
word += *it;
}
return word;
@@ -47,7 +47,7 @@ class Dict {
inline const std::string& Convert(const WordID& id) const {
if (id == 0) return b0_;
- assert(id <= words_.size());
+ assert(id <= (int)words_.size());
return words_[id-1];
}