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:
authorHieu Hoang <hieuhoang@gmail.com>2014-06-21 16:23:26 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-06-21 16:23:26 +0400
commit78bfca3ecfef6496b350f4fb5fbf8d5554683835 (patch)
tree99d2be8204882d044df30048883ae6ea3658a753 /OnDiskPt
parent15ac0821b198bf69d27a59871b17d0b05e3f76ca (diff)
expand max string size when binarizing. MUST change this soon
Diffstat (limited to 'OnDiskPt')
-rw-r--r--OnDiskPt/Main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/OnDiskPt/Main.cpp b/OnDiskPt/Main.cpp
index 4f73bdf7e..52ef8843e 100644
--- a/OnDiskPt/Main.cpp
+++ b/OnDiskPt/Main.cpp
@@ -66,15 +66,17 @@ int main (int argc, char * const argv[])
PhraseNode &rootNode = onDiskWrapper.GetRootSourceNode();
size_t lineNum = 0;
- char line[100000];
+
+ const int MAX_CHAR = 1000000;
+ char line[MAX_CHAR];
//while(getline(inStream, line))
- while(inStream.getline(line, 100000)) {
+ while(inStream.getline(line, MAX_CHAR)) {
lineNum++;
if (lineNum%1000 == 0) cerr << "." << flush;
if (lineNum%10000 == 0) cerr << ":" << flush;
if (lineNum%100000 == 0) cerr << lineNum << flush;
- //cerr << lineNum << " " << line << endl;
+ cerr << lineNum << " " << line << endl;
std::vector<float> misc(1);
SourcePhrase sourcePhrase;