diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
commit | 6249432407af8730c10bccc7894c0725fcaf5e47 (patch) | |
tree | 3ac1f094b9fdc199b04bc5ef209ce00e3596e37d /mert/ScoreArray.cpp | |
parent | 59bd7deb4b6b9c4f7b3b7dbb055783528fbc31ca (diff) |
beautify
Diffstat (limited to 'mert/ScoreArray.cpp')
-rw-r--r-- | mert/ScoreArray.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mert/ScoreArray.cpp b/mert/ScoreArray.cpp index dcd0f7680..dd9aa5b07 100644 --- a/mert/ScoreArray.cpp +++ b/mert/ScoreArray.cpp @@ -17,12 +17,12 @@ namespace MosesTuning ScoreArray::ScoreArray() - : m_num_scores(0), m_index(0) {} + : m_num_scores(0), m_index(0) {} void ScoreArray::savetxt(ostream* os, const string& sctype) { *os << SCORES_TXT_BEGIN << " " << m_index << " " << m_array.size() - << " " << m_num_scores << " " << sctype << endl; + << " " << m_num_scores << " " << sctype << endl; for (scorearray_t::iterator i = m_array.begin(); i !=m_array.end(); i++) { i->savetxt(os); *os << endl; @@ -33,7 +33,7 @@ void ScoreArray::savetxt(ostream* os, const string& sctype) void ScoreArray::savebin(ostream* os, const string& score_type) { *os << SCORES_BIN_BEGIN << " " << m_index << " " << m_array.size() - << " " << m_num_scores << " " << score_type << endl; + << " " << m_num_scores << " " << score_type << endl; for (scorearray_t::iterator i = m_array.begin(); i != m_array.end(); i++) { i->savebin(os); @@ -63,7 +63,8 @@ void ScoreArray::save(const string &file, const string& score_type, bool bin) ofs.close(); } -void ScoreArray::save(const string& score_type, bool bin) { +void ScoreArray::save(const string& score_type, bool bin) +{ save(&cout, score_type, bin); } |