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:
authorNicola Bertoldi <bertoldi@fbk.eu>2014-04-30 10:32:46 +0400
committerNicola Bertoldi <bertoldi@fbk.eu>2014-04-30 10:32:46 +0400
commitfe1ed42f812072f548cc98418f4aaa06fed98695 (patch)
treee5a55e73456df1e5d77df07e0ed00ccd2234c35f /moses-cmd
parent0313523d7dbc4a7c576e290043880959a87e94df (diff)
parentae4ab9aae0643defd9edaaa7c9d11b6589d4811b (diff)
Merge branch 'master' into dynamic-models
Diffstat (limited to 'moses-cmd')
-rw-r--r--moses-cmd/Main.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/moses-cmd/Main.cpp b/moses-cmd/Main.cpp
index ef2dd5e5c..98c113a19 100644
--- a/moses-cmd/Main.cpp
+++ b/moses-cmd/Main.cpp
@@ -253,14 +253,17 @@ public:
if ( appendSuffix ) {
fileName << "." << compression;
}
- boost::iostreams::filtering_ostream *file = new boost::iostreams::filtering_ostream;
+ boost::iostreams::filtering_ostream *file
+ = new boost::iostreams::filtering_ostream;
if ( compression == "gz" ) {
file->push( boost::iostreams::gzip_compressor() );
} else if ( compression == "bz2" ) {
file->push( boost::iostreams::bzip2_compressor() );
} else if ( compression != "txt" ) {
- TRACE_ERR("Unrecognized hypergraph compression format (" << compression << ") - using uncompressed plain txt" << std::endl);
+ TRACE_ERR("Unrecognized hypergraph compression format ("
+ << compression
+ << ") - using uncompressed plain txt" << std::endl);
compression = "txt";
}
@@ -271,7 +274,10 @@ public:
manager.OutputSearchGraphAsHypergraph(m_lineNumber, *file);
file -> flush();
} else {
- TRACE_ERR("Cannot output hypergraph for line " << m_lineNumber << " because the output file " << fileName.str() << " is not open or not ready for writing" << std::endl);
+ TRACE_ERR("Cannot output hypergraph for line " << m_lineNumber
+ << " because the output file " << fileName.str()
+ << " is not open or not ready for writing"
+ << std::endl);
}
file -> pop();
delete file;