From 92aff251f55caef2a6855771e935f6c639bfa9e1 Mon Sep 17 00:00:00 2001 From: graehl Date: Fri, 16 Jul 2010 01:56:55 +0000 Subject: oracle is_null git-svn-id: https://ws10smt.googlecode.com/svn/trunk@279 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/tdict.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'decoder/tdict.h') 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 -- cgit v1.2.3