mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-05 15:58:03 +03:00
daily automatic beautifier
This commit is contained in:
parent
bd86ceffbe
commit
89c2df558c
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
3
phrase-extract/lexical-reordering/gzfilebuf.h
Executable file → Normal file
3
phrase-extract/lexical-reordering/gzfilebuf.h
Executable file → Normal file
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user