summaryrefslogtreecommitdiff
path: root/utils/dict.h
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2011-10-19 21:41:00 +0200
committerPatrick Simianer <p@simianer.de>2011-10-19 21:41:00 +0200
commit1f54c7b765d4f933f4b631f265933f28e4ae2c93 (patch)
tree884bc61734d05ad0a8a3d906be002fc30699ea89 /utils/dict.h
parent967e1c98980b07909b03ff5e3e71442cbeb216e8 (diff)
debug
Diffstat (limited to 'utils/dict.h')
-rw-r--r--utils/dict.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/dict.h b/utils/dict.h
index 33cca6cf..a3400868 100644
--- a/utils/dict.h
+++ b/utils/dict.h
@@ -1,7 +1,6 @@
#ifndef DICT_H_
#define DICT_H_
-#include <iostream>
#include <cassert>
#include <cstring>
@@ -73,8 +72,8 @@ 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_;
+ assert(id <= (int)words_.size());
+ //if (id < 0 || id > (int)words_.size()) return b0_;
return words_[id-1];
}