Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-04-22 06:35:18 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-04-22 06:35:18 +0300
commit32722ab5b1477cb55bce2ba5d0c2620446cff8a9 (patch)
tree9bcdcbb9d75f6b6e9530c1e740b1ca747d0559e4 /phrase-extract/consolidate-direct-main.cpp
parent10a0a7b05a190c10af9a926160fed06915691af5 (diff)
Support tokenize(const std::string &) as well.
Convenience wrapper: the actual function takes a const char[], but many of the call sites want to pass a string and have to call its c_str() first.
Diffstat (limited to 'phrase-extract/consolidate-direct-main.cpp')
-rw-r--r--phrase-extract/consolidate-direct-main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/phrase-extract/consolidate-direct-main.cpp b/phrase-extract/consolidate-direct-main.cpp
index e85a897ef..d25197372 100644
--- a/phrase-extract/consolidate-direct-main.cpp
+++ b/phrase-extract/consolidate-direct-main.cpp
@@ -108,7 +108,7 @@ int main(int argc, char* argv[])
if (! getLine(fileDirectP, itemDirect ))
break;
- const vector< string > count = util::tokenize( itemDirect[4].c_str() );
+ const vector< string > count = util::tokenize( itemDirect[4] );
float countEF = atof(count[0].c_str());
float countF = atof(count[1].c_str());
float prob = countF/countEF;