diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-10-11 12:56:49 +0100 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-10-11 12:56:49 +0100 |
commit | 4671d578bd6d97105ac75b02e0144fe0df3abcb0 (patch) | |
tree | 3521201a5fdada449bb246cc903e8180e14edeb0 /utils/tdict.cc | |
parent | c5e756926ea07ebe371b24e0a6d7962f279b79a5 (diff) |
missing numwords impl
Diffstat (limited to 'utils/tdict.cc')
-rw-r--r-- | utils/tdict.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/tdict.cc b/utils/tdict.cc index c21b2b48..de234323 100644 --- a/utils/tdict.cc +++ b/utils/tdict.cc @@ -13,6 +13,10 @@ using namespace std; Dict TD::dict_; +unsigned int TD::NumWords() { + return dict_.max(); +} + WordID TD::Convert(const std::string& s) { return dict_.Convert(s); } |