#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 = ""); Score* ScoreCandidate(const std::vector& hyp) const; static Score* ScoreFromString(const std::string& in); const std::string* GetSource() const; private: std::string src_; boost::shared_ptr > ref_; }; #endif