summaryrefslogtreecommitdiff
path: root/mteval/ns_docscorer.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-11-10 19:02:56 -0500
committerChris Dyer <cdyer@cs.cmu.edu>2012-11-10 19:02:56 -0500
commit8d084476522ff267a25b8faa58e48879b5d0cdb6 (patch)
treeda67e70976bf337a7b37f82972f028b7aa6ed6ea /mteval/ns_docscorer.h
parenteb03a413713c070edf07e466575e0f58085aa258 (diff)
support multi-reference references
Diffstat (limited to 'mteval/ns_docscorer.h')
-rw-r--r--mteval/ns_docscorer.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/mteval/ns_docscorer.h b/mteval/ns_docscorer.h
index a5757258..b3c28fc9 100644
--- a/mteval/ns_docscorer.h
+++ b/mteval/ns_docscorer.h
@@ -10,21 +10,23 @@ struct SegmentEvaluator;
class DocumentScorer {
public:
~DocumentScorer();
- DocumentScorer() { }
+ DocumentScorer();
DocumentScorer(const EvaluationMetric* metric,
const std::vector<std::string>& ref_files,
const std::string& src_file = "",
bool verbose=false) {
Init(metric,ref_files,src_file,verbose);
}
+ DocumentScorer(const EvaluationMetric* metric,
+ const std::string& src_ref_composite_file);
+ int size() const { return scorers_.size(); }
+ const SegmentEvaluator* operator[](size_t i) const { return scorers_[i].get(); }
+ private:
void Init(const EvaluationMetric* metric,
const std::vector<std::string>& ref_files,
const std::string& src_file = "",
bool verbose=false);
- int size() const { return scorers_.size(); }
- const SegmentEvaluator* operator[](size_t i) const { return scorers_[i].get(); }
- private:
std::vector<boost::shared_ptr<SegmentEvaluator> > scorers_;
};