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:
authorHieu Hoang <hieuhoang@gmail.com>2015-05-02 13:45:24 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-05-02 13:45:24 +0300
commitcc8c6b7b10abd8118014635609f7658f6a7a1857 (patch)
treecab374bcbf73ff97782e9131380e4f32dbeb1e67 /mert/sentence-bleu.cpp
parenta4a7c14593766ab188e1d6ae1c29e67ed201d412 (diff)
beautify
Diffstat (limited to 'mert/sentence-bleu.cpp')
-rw-r--r--mert/sentence-bleu.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/mert/sentence-bleu.cpp b/mert/sentence-bleu.cpp
index 9bdab30d2..3f886ffeb 100644
--- a/mert/sentence-bleu.cpp
+++ b/mert/sentence-bleu.cpp
@@ -34,8 +34,7 @@ int main(int argc, char **argv)
// initialize reference streams
vector<boost::shared_ptr<ifstream> > refStreams;
- for (vector<string>::const_iterator refFile=refFiles.begin(); refFile!=refFiles.end(); ++refFile)
- {
+ for (vector<string>::const_iterator refFile=refFiles.begin(); refFile!=refFiles.end(); ++refFile) {
TRACE_ERR("Loading reference from " << *refFile << endl);
boost::shared_ptr<ifstream> ifs(new ifstream(refFile->c_str()));
UTIL_THROW_IF2(!ifs, "Cannot open " << *refFile);
@@ -45,8 +44,7 @@ int main(int argc, char **argv)
// load sentences, preparing statistics, score
string hypothesisLine;
size_t sid = 0;
- while (getline(std::cin, hypothesisLine))
- {
+ while (getline(std::cin, hypothesisLine)) {
Reference ref;
if (!scorer.GetNextReferenceFromStreams(refStreams, ref)) {
UTIL_THROW2("Missing references");