diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-16 01:56:55 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-16 01:56:55 +0000 |
commit | 92aff251f55caef2a6855771e935f6c639bfa9e1 (patch) | |
tree | c4b00f40556f49eca03d0c7e983defc7856b437c /decoder/tdict.h | |
parent | 4e6718978a6f3a003ee0618cc5a6b97f9899bb0e (diff) |
oracle is_null
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@279 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/tdict.h')
-rw-r--r-- | decoder/tdict.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/decoder/tdict.h b/decoder/tdict.h index fd77543d..1fba5179 100644 --- a/decoder/tdict.h +++ b/decoder/tdict.h @@ -28,4 +28,12 @@ struct TD { static const char* Convert(const WordID& w); }; +struct ToTD { + typedef WordID result_type; + result_type operator()(std::string const& t) const { + return TD::Convert(t); + } +}; + + #endif |