diff options
author | machacekmatous <machacekmatous@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-08-19 01:35:16 +0400 |
---|---|---|
committer | machacekmatous <machacekmatous@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-08-19 01:35:16 +0400 |
commit | 63fd490a51be2faf34d6d6ef4ef8104b78814e6e (patch) | |
tree | 1ff043b0846aac057591917fed978983d5212fc4 /mert/ScorerFactory.h | |
parent | 96417949c2f3d85b535e81c1d1358752b93c00be (diff) |
Added CDER metric to use in MERT.
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4152 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/ScorerFactory.h')
-rw-r--r-- | mert/ScorerFactory.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mert/ScorerFactory.h b/mert/ScorerFactory.h index 3cfc53ad9..1fa936ba5 100644 --- a/mert/ScorerFactory.h +++ b/mert/ScorerFactory.h @@ -15,6 +15,7 @@ #include "BleuScorer.h" #include "PerScorer.h" #include "TerScorer.h" +#include "CderScorer.h" using namespace std; @@ -27,6 +28,7 @@ public: types.push_back(string("BLEU")); types.push_back(string("PER")); types.push_back(string("TER")); + types.push_back(string("CDER")); return types; } @@ -37,6 +39,8 @@ public: return (PerScorer*) new PerScorer(config); } else if (type == "TER") { return (TerScorer*) new TerScorer(config); + } else if (type == "CDER") { + return (CderScorer*) new CderScorer(config); } else { throw runtime_error("Unknown scorer type: " + type); } |