Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormachacekmatous <machacekmatous@1f5c12ca-751b-0410-a591-d2e778427230>2011-08-19 01:35:16 +0400
committermachacekmatous <machacekmatous@1f5c12ca-751b-0410-a591-d2e778427230>2011-08-19 01:35:16 +0400
commit63fd490a51be2faf34d6d6ef4ef8104b78814e6e (patch)
tree1ff043b0846aac057591917fed978983d5212fc4 /mert/ScorerFactory.h
parent96417949c2f3d85b535e81c1d1358752b93c00be (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.h4
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);
}