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:
authorMosesAdmin <moses-support-owner@mit.edu>2015-06-14 02:00:44 +0300
committerMosesAdmin <moses-support-owner@mit.edu>2015-06-14 02:00:44 +0300
commit89c2df558ca3533369586d8d4e2c7451b2d2732e (patch)
treeff4d02a5b7622bb1feb65524db0e2c906c8252a4 /phrase-extract
parentbd86ceffbe6d748a863e15def2443150ca360b38 (diff)
daily automatic beautifier
Diffstat (limited to 'phrase-extract')
-rw-r--r--phrase-extract/extract-mixed-syntax/gzfilebuf.h3
-rw-r--r--phrase-extract/gzfilebuf.h3
-rw-r--r--[-rwxr-xr-x]phrase-extract/lexical-reordering/gzfilebuf.h3
3 files changed, 6 insertions, 3 deletions
diff --git a/phrase-extract/extract-mixed-syntax/gzfilebuf.h b/phrase-extract/extract-mixed-syntax/gzfilebuf.h
index 4c818ddbb..e070da306 100644
--- a/phrase-extract/extract-mixed-syntax/gzfilebuf.h
+++ b/phrase-extract/extract-mixed-syntax/gzfilebuf.h
@@ -12,7 +12,8 @@ public:
gzfilebuf(const char *filename) {
_gzf = gzopen(filename, "rb");
if (!_gzf)
- throw std::runtime_error("Could not open " + std::string(filename) + "."); setg (_buff+sizeof(int), // beginning of putback area
+ throw std::runtime_error("Could not open " + std::string(filename) + ".");
+ setg (_buff+sizeof(int), // beginning of putback area
_buff+sizeof(int), // read position
_buff+sizeof(int)); // end position
}
diff --git a/phrase-extract/gzfilebuf.h b/phrase-extract/gzfilebuf.h
index 4c818ddbb..e070da306 100644
--- a/phrase-extract/gzfilebuf.h
+++ b/phrase-extract/gzfilebuf.h
@@ -12,7 +12,8 @@ public:
gzfilebuf(const char *filename) {
_gzf = gzopen(filename, "rb");
if (!_gzf)
- throw std::runtime_error("Could not open " + std::string(filename) + "."); setg (_buff+sizeof(int), // beginning of putback area
+ throw std::runtime_error("Could not open " + std::string(filename) + ".");
+ setg (_buff+sizeof(int), // beginning of putback area
_buff+sizeof(int), // read position
_buff+sizeof(int)); // end position
}
diff --git a/phrase-extract/lexical-reordering/gzfilebuf.h b/phrase-extract/lexical-reordering/gzfilebuf.h
index 4c818ddbb..e070da306 100755..100644
--- a/phrase-extract/lexical-reordering/gzfilebuf.h
+++ b/phrase-extract/lexical-reordering/gzfilebuf.h
@@ -12,7 +12,8 @@ public:
gzfilebuf(const char *filename) {
_gzf = gzopen(filename, "rb");
if (!_gzf)
- throw std::runtime_error("Could not open " + std::string(filename) + "."); setg (_buff+sizeof(int), // beginning of putback area
+ throw std::runtime_error("Could not open " + std::string(filename) + ".");
+ setg (_buff+sizeof(int), // beginning of putback area
_buff+sizeof(int), // read position
_buff+sizeof(int)); // end position
}