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-01-15 19:49:57 +0400
committerNicola Bertoldi <bertoldi@fbk.eu>2014-01-15 19:49:57 +0400
commite452a13062400b09ff95af971c1424ac34cf1930 (patch)
tree11b52a2f1228f4e64fb31d061d7e564970140fd7 /mert/Data.cpp
parentbd83999264407dd7970736ee3e70a6b39fb19014 (diff)
beautify
Diffstat (limited to 'mert/Data.cpp')
-rw-r--r--mert/Data.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/mert/Data.cpp b/mert/Data.cpp
index 095b26041..b93c3b6c0 100644
--- a/mert/Data.cpp
+++ b/mert/Data.cpp
@@ -263,13 +263,13 @@ void Data::createShards(size_t shard_count, float shard_size, const string& scor
{
UTIL_THROW_IF(shard_count == 0, util::Exception, "Must have at least 1 shard");
UTIL_THROW_IF(shard_size < 0 || shard_size > 1,
- util::Exception,
- "Shard size must be between 0 and 1, inclusive. Currently " << shard_size);
+ util::Exception,
+ "Shard size must be between 0 and 1, inclusive. Currently " << shard_size);
size_t data_size = m_score_data->size();
UTIL_THROW_IF(data_size != m_feature_data->size(),
- util::Exception,
- "Error");
+ util::Exception,
+ "Error");
shard_size *= data_size;
const float coeff = static_cast<float>(data_size) / shard_count;