diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-06-21 16:23:26 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-06-21 16:23:26 +0400 |
commit | 78bfca3ecfef6496b350f4fb5fbf8d5554683835 (patch) | |
tree | 99d2be8204882d044df30048883ae6ea3658a753 /OnDiskPt | |
parent | 15ac0821b198bf69d27a59871b17d0b05e3f76ca (diff) |
expand max string size when binarizing. MUST change this soon
Diffstat (limited to 'OnDiskPt')
-rw-r--r-- | OnDiskPt/Main.cpp | 8 |
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; |