diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-03-24 23:04:46 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-03-24 23:04:46 -0400 |
commit | b6eede632af4fa58a6f5325ee0d059c02a898b9f (patch) | |
tree | 4d29d1d1d700b9540af213bac32ffda96046abe1 /mteval/aer_scorer.cc | |
parent | 0c7e078d14dd7078ec4a5b3e77007609aec5e54c (diff) |
rename aligner, add support for distinguishing translation / transliteration
Diffstat (limited to 'mteval/aer_scorer.cc')
-rw-r--r-- | mteval/aer_scorer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mteval/aer_scorer.cc b/mteval/aer_scorer.cc index edd4390f..ae3192d4 100644 --- a/mteval/aer_scorer.cc +++ b/mteval/aer_scorer.cc @@ -5,7 +5,7 @@ #include <sstream> #include "tdict.h" -#include "alignment_pharaoh.h" +#include "alignment_io.h" using namespace std; @@ -85,7 +85,7 @@ AERScorer::AERScorer(const vector<vector<WordID> >& refs, const string& src) : s cerr << "AERScorer can only take a single reference!\n"; abort(); } - ref_ = AlignmentPharaoh::ReadPharaohAlignmentGrid(TD::GetString(refs.front())); + ref_ = AlignmentIO::ReadPharaohAlignmentGrid(TD::GetString(refs.front())); } static inline bool Safe(const Array2D<bool>& a, int i, int j) { @@ -101,7 +101,7 @@ ScoreP AERScorer::ScoreCCandidate(const vector<WordID>& shyp) const { ScoreP AERScorer::ScoreCandidate(const vector<WordID>& shyp) const { boost::shared_ptr<Array2D<bool> > hyp = - AlignmentPharaoh::ReadPharaohAlignmentGrid(TD::GetString(shyp)); + AlignmentIO::ReadPharaohAlignmentGrid(TD::GetString(shyp)); int m = 0; int r = 0; |