summaryrefslogtreecommitdiff
path: root/decoder/tdict.cc
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/tdict.cc')
-rw-r--r--decoder/tdict.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/decoder/tdict.cc b/decoder/tdict.cc
index c00d20b8..ac590bd8 100644
--- a/decoder/tdict.cc
+++ b/decoder/tdict.cc
@@ -10,6 +10,10 @@ Vocab* TD::dict_ = new Vocab;
static const string empty;
static const string space = " ";
+unsigned int TD::NumWords() {
+ return dict_->numWords();
+}
+
WordID TD::Convert(const std::string& s) {
return dict_->addWord((VocabString)s.c_str());
}