From 42c1346c6bce064601beb81bb954ea5e30e9f43d Mon Sep 17 00:00:00 2001 From: graehl Date: Tue, 20 Jul 2010 23:03:54 +0000 Subject: tokenization works. oops. git-svn-id: https://ws10smt.googlecode.com/svn/trunk@346 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/tdict.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'decoder/tdict.cc') diff --git a/decoder/tdict.cc b/decoder/tdict.cc index d7fc7eb7..43bc4cbd 100644 --- a/decoder/tdict.cc +++ b/decoder/tdict.cc @@ -50,9 +50,13 @@ struct add_wordids { typedef std::vector Ws; Ws *ids; explicit add_wordids(Ws *i) : ids(i) { } + add_wordids(const add_wordids& o) : ids(o.ids) { } void operator()(char const* s) { ids->push_back(TD::Convert(s)); } + void operator()(std::string const& s) { + ids->push_back(TD::Convert(s)); + } }; } -- cgit v1.2.3