diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-12-06 18:46:22 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-12-06 18:46:22 +0400 |
commit | cd3fb3b831e5ca0821a735c0d075f5fd6e79296a (patch) | |
tree | cb0824af9dae112d031f4a7aefd127572d595deb /mert/Data.cpp | |
parent | ac045a11c1f0e1d4ae25f0db47061113fc3ae2e1 (diff) |
Untabify.
Diffstat (limited to 'mert/Data.cpp')
-rw-r--r-- | mert/Data.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mert/Data.cpp b/mert/Data.cpp index 3c0a03db0..100d64e85 100644 --- a/mert/Data.cpp +++ b/mert/Data.cpp @@ -153,9 +153,9 @@ void Data::loadNBest(const string &file) getNextPound(line, temp, "|||"); //fourth field sentence score if (line.length() > 0) { getNextPound(line, alignment, "|||"); //fifth field (if present) is either phrase or word alignment - if (line.length() > 0) { - getNextPound(line, alignment, "|||"); //sixth field (if present) is word alignment - } + if (line.length() > 0) { + getNextPound(line, alignment, "|||"); //sixth field (if present) is word alignment + } } } //TODO check alignment exists if scorers need it @@ -165,7 +165,7 @@ void Data::loadNBest(const string &file) sentence += alignment; } m_scorer->prepareStats(sentence_index, sentence, scoreentry); - + m_score_data->add(scoreentry, sentence_index); // examine first line for name of features @@ -281,4 +281,3 @@ void Data::createShards(size_t shard_count, float shard_size, const string& scor } } - |