Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 38ae810fe3
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (27 sloc) 0.889 kb
#ifndef _NS_DOC_SCORER_H_
#define _NS_DOC_SCORER_H_
#include <vector>
#include <string>
#include <boost/shared_ptr.hpp>
struct EvaluationMetric;
struct SegmentEvaluator;
class DocumentScorer {
public:
~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);
}
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_;
};
#endif
Jump to Line
Something went wrong with that request. Please try again.