diff options
author | Matous Machacek <machacekmatous@gmail.com> | 2012-05-03 00:03:58 +0400 |
---|---|---|
committer | Matous Machacek <machacekmatous@gmail.com> | 2012-05-03 00:03:58 +0400 |
commit | 933f25b3b201da907b2749264ff824a0913fdf2f (patch) | |
tree | 05904ec381b80bbadc76f44d18c8e3a210bf884d /mert/CderScorer.h | |
parent | 0021ef661e5751551cd620440a222d8a298ffcc5 (diff) |
CderScorer compute both CDER and WER metric
Diffstat (limited to 'mert/CderScorer.h')
-rw-r--r-- | mert/CderScorer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mert/CderScorer.h b/mert/CderScorer.h index 164362de8..45989994a 100644 --- a/mert/CderScorer.h +++ b/mert/CderScorer.h @@ -10,7 +10,7 @@ using namespace std; class CderScorer: public StatisticsBasedScorer { public: - explicit CderScorer(const string& config); + explicit CderScorer(const string& config, bool longJumps = true); ~CderScorer(); virtual void setReferenceFiles(const vector<string>& referenceFiles); @@ -24,6 +24,9 @@ class CderScorer: public StatisticsBasedScorer { virtual float calculateScore(const vector<int>& comps) const; private: + + bool longJumpsAllowed; + typedef vector<int> sent_t; vector<vector<sent_t> > m_ref_sentences; |