From 24b1314d901fe1d19f5b70c0616c3d4d9a5c57d8 Mon Sep 17 00:00:00 2001 From: Tetsuo Kiso Date: Sat, 31 Mar 2012 10:43:54 +0900 Subject: Fix indentation. --- mert/mert.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mert/mert.cpp') 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 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(); -- cgit v1.2.3