diff options
Diffstat (limited to 'utils/dict.h')
-rw-r--r-- | utils/dict.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/dict.h b/utils/dict.h index 75ea3def..a3400868 100644 --- a/utils/dict.h +++ b/utils/dict.h @@ -1,7 +1,6 @@ #ifndef DICT_H_ #define DICT_H_ - #include <cassert> #include <cstring> @@ -74,6 +73,7 @@ class Dict { inline const std::string& Convert(const WordID& id) const { if (id == 0) return b0_; assert(id <= (int)words_.size()); + //if (id < 0 || id > (int)words_.size()) return b0_; return words_[id-1]; } |