summaryrefslogtreecommitdiff
path: root/decoder/tdict.cc
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-06-23 18:29:55 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-06-23 18:29:55 +0000
commit3f6de721b089823ac15f3d1ad786e6b479dee4d0 (patch)
tree98edfe38e297fddcbad2624384d174436f2001b4 /decoder/tdict.cc
parent70ad159e22fc6ea12a5e7b468ab38a93c3ed111f (diff)
use centralized make
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@11 ec762483-ff6d-05da-a07a-a48fb63a330f
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());
}