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-05-19 17:35:08 +0400
committerNicola Bertoldi <bertoldi@fbk.eu>2014-05-19 17:35:08 +0400
commit20b3e8929e93c40e0f1ec61b9268330fe59607f9 (patch)
treeae6102023df2adfd6bfb287cbc6d89caad5afeac /moses-cmd
parent2f3cd5e2fe54f0352eee4657ea91e0039073a95a (diff)
beautify
Diffstat (limited to 'moses-cmd')
-rw-r--r--moses-cmd/Main.cpp32
1 files changed, 15 insertions, 17 deletions
diff --git a/moses-cmd/Main.cpp b/moses-cmd/Main.cpp
index 98c113a19..f77dc2373 100644
--- a/moses-cmd/Main.cpp
+++ b/moses-cmd/Main.cpp
@@ -253,17 +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";
}
@@ -274,10 +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;
@@ -504,8 +504,7 @@ static void ShowWeights()
const StatefulFeatureFunction *ff = sff[i];
if (ff->IsTuneable()) {
PrintFeatureWeight(ff);
- }
- else {
+ } else {
cout << ff->GetScoreProducerDescription() << " UNTUNEABLE" << endl;
}
}
@@ -513,8 +512,7 @@ static void ShowWeights()
const StatelessFeatureFunction *ff = slf[i];
if (ff->IsTuneable()) {
PrintFeatureWeight(ff);
- }
- else {
+ } else {
cout << ff->GetScoreProducerDescription() << " UNTUNEABLE" << endl;
}
}
@@ -585,7 +583,7 @@ int main(int argc, char** argv)
#ifdef HAVE_PROTOBUF
GOOGLE_PROTOBUF_VERIFY_VERSION;
#endif
-
+
// echo command line, if verbose
IFVERBOSE(1) {
TRACE_ERR("command: ");
@@ -604,15 +602,15 @@ int main(int argc, char** argv)
exit(1);
}
-std::cerr <<"Before StaticData::LoadDataStatic" << std::endl;
+ std::cerr <<"Before StaticData::LoadDataStatic" << std::endl;
// initialize all "global" variables, which are stored in StaticData
// note: this also loads models such as the language model, etc.
if (!StaticData::LoadDataStatic(&params, argv[0])) {
exit(1);
}
-std::cerr <<"After StaticData::LoadDataStatic" << std::endl;
+ std::cerr <<"After StaticData::LoadDataStatic" << std::endl;
-std::cerr <<"Before ShowWeights" << std::endl;
+ std::cerr <<"Before ShowWeights" << std::endl;
// setting "-show-weights" -> just dump out weights and exit
if (params.isParamSpecified("show-weights")) {
ShowWeights();