#ifndef AER_SCORER_ #define AER_SCORER_ #include #include "scorer.h" #include "array2d.h" class AERScorer : public SentenceScorer { public: // when constructing alignment strings from a hypergraph, the source // is necessary. AERScorer(const std::vector >& refs, const std::string& src = ""); ScoreP ScoreCandidate(const std::vector& hyp) const; ScoreP ScoreCCandidate(const std::vector& hyp) const; static ScoreP ScoreFromString(const std::string& in); const std::string* GetSource() const; private: std::string src_; boost::shared_ptr > ref_; }; #endif