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 | ffaae62e4f1cedabbc6eb1982af129e7294d33eb (patch) | |
tree | b11463d3da5b32cb84a35000b045e9e765f050a6 | |
parent | 0870c4719c57bdf5e48df7fc1de76d3ea9db4e15 (diff) |
missing numwords impl
-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); } |