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:
authorTetsuo Kiso <tetsuo-s@is.naist.jp>2012-03-31 05:43:54 +0400
committerTetsuo Kiso <tetsuo-s@is.naist.jp>2012-03-31 05:43:54 +0400
commit24b1314d901fe1d19f5b70c0616c3d4d9a5c57d8 (patch)
treee8b4043116c5fc3b55dc12612c2784ddf7b74cd1 /mert/mert.cpp
parent59f755587a7955356ca6769f6820228e70b61628 (diff)
Fix indentation.
Diffstat (limited to 'mert/mert.cpp')
-rw-r--r--mert/mert.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/mert/mert.cpp b/mert/mert.cpp
index e7fde6370..bbad8fe38 100644
--- a/mert/mert.cpp
+++ b/mert/mert.cpp
@@ -175,7 +175,7 @@ struct ProgramOption {
scorer_file(kDefaultScorerFile),
feature_file(kDefaultFeatureFile),
init_file(kDefaultInitFile),
- positive_string(kDefaultPositiveString),
+ positive_string(kDefaultPositiveString),
num_threads(1),
shard_size(0),
shard_count(0) { }
@@ -398,10 +398,9 @@ int main(int argc, char **argv)
}
positive.resize(option.pdim);
- for (int i=0; i<option.pdim; i++)
+ for (int i = 0; i < option.pdim; i++)
positive[i] = false;
if (option.positive_string.length() > 0) {
-
// Parse string to get weights that need to be positive
std::string substring;
int index;
@@ -412,12 +411,13 @@ int main(int argc, char **argv)
if (index >= 0 && index < option.pdim) {
positive[index] = true;
} else {
- cerr << "Index " << index << " is out of bounds in positivity list. Allowed indexes are [0," << (option.pdim-1) << "]." << endl;
+ cerr << "Index " << index
+ << " is out of bounds in positivity list. Allowed indexes are [0,"
+ << (option.pdim-1) << "]." << endl;
}
}
}
-
// treat sparse features just like regular features
if (data.hasSparseFeatures()) {
data.mergeSparseFeatures();