summaryrefslogtreecommitdiff
path: root/decoder/sentences.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 23:57:46 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 23:57:46 +0000
commit8baa12d8f4973471105a590a7bd42b2ec2e3592a (patch)
treebfa7d2de32b285848652202cce23ed00f6308e90 /decoder/sentences.h
parent234e92201c32eac97d472d2b2454809028538df4 (diff)
fabulous string tokenization tested
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@350 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/sentences.h')
-rwxr-xr-xdecoder/sentences.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/decoder/sentences.h b/decoder/sentences.h
index 622a6f43..6ab216bf 100755
--- a/decoder/sentences.h
+++ b/decoder/sentences.h
@@ -15,9 +15,12 @@ inline std::ostream & operator<<(std::ostream &out,Sentence const& s) {
inline void StringToSentence(std::string const& str,Sentence &s) {
using namespace std;
- vector<string> ss=SplitOnWhitespace(str);
s.clear();
+ TD::ConvertSentence(str,&s);
+/* vector<string> ss=SplitOnWhitespace(str);
transform(ss.begin(),ss.end(),back_inserter(s),ToTD());
+*/
+
}
inline Sentence StringToSentence(std::string const& str) {