diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-10-11 14:06:32 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-10-11 14:06:32 -0400 |
commit | 07ea7b64b6f85e5798a8068453ed9fd2b97396db (patch) | |
tree | 644496a1690d84d82a396bbc1e39160788beb2cd /mteval | |
parent | 37b9e45e5cb29d708f7249dbe0b0fb27685282a0 (diff) | |
parent | a36fcc5d55c1de84ae68c1091ebff2b1c32dc3b7 (diff) |
Merge branch 'master' of https://github.com/redpony/cdec
Diffstat (limited to 'mteval')
-rw-r--r-- | mteval/Jamfile | 8 | ||||
-rw-r--r-- | mteval/ns_docscorer.cc | 4 | ||||
-rw-r--r-- | mteval/ns_docscorer.h | 2 |
3 files changed, 3 insertions, 11 deletions
diff --git a/mteval/Jamfile b/mteval/Jamfile deleted file mode 100644 index 3ed2c2cc..00000000 --- a/mteval/Jamfile +++ /dev/null @@ -1,8 +0,0 @@ -import testing ; - -lib mteval : ter.cc comb_scorer.cc aer_scorer.cc scorer.cc external_scorer.cc ns.cc ns_ter.cc ns_ext.cc ns_comb.cc ns_docscorer.cc ns_cer.cc ..//utils : <include>. : : <include>. <library>..//z ; -exe fast_score : fast_score.cc mteval ..//utils ..//boost_program_options ; -exe mbr_kbest : mbr_kbest.cc mteval ..//utils ..//boost_program_options ; -alias programs : fast_score mbr_kbest ; - -unit-test scorer_test : scorer_test.cc mteval ..//utils ..//z ..//boost_unit_test_framework : <testing.arg>$(TOP)/mteval/test_data ; diff --git a/mteval/ns_docscorer.cc b/mteval/ns_docscorer.cc index 28a2fd09..f72ad115 100644 --- a/mteval/ns_docscorer.cc +++ b/mteval/ns_docscorer.cc @@ -16,7 +16,7 @@ void DocumentScorer::Init(const EvaluationMetric* metric, const string& src_file, bool verbose) { scorers_.clear(); - cerr << "Loading references (" << ref_files.size() << " files)\n"; + if (verbose) cerr << "Loading references (" << ref_files.size() << " files)\n"; assert(src_file.empty()); std::vector<ReadFile> ifs(ref_files.begin(),ref_files.end()); for (int i=0; i < ref_files.size(); ++i) ifs[i].Init(ref_files[i]); @@ -55,6 +55,6 @@ void DocumentScorer::Init(const EvaluationMetric* metric, ++line; } } - cerr << "Loaded reference translations for " << scorers_.size() << " sentences.\n"; + if (verbose) cerr << "Loaded reference translations for " << scorers_.size() << " sentences.\n"; } diff --git a/mteval/ns_docscorer.h b/mteval/ns_docscorer.h index 170ac627..a5757258 100644 --- a/mteval/ns_docscorer.h +++ b/mteval/ns_docscorer.h @@ -5,7 +5,7 @@ #include <string> #include <boost/shared_ptr.hpp> -struct EvaluationMetric; +class EvaluationMetric; struct SegmentEvaluator; class DocumentScorer { public: |