diff options
author | servan <servan@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-10-05 17:36:17 +0400 |
---|---|---|
committer | servan <servan@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-10-05 17:36:17 +0400 |
commit | f223f5a2765944ddf54d889c750b9dfc535bfb66 (patch) | |
tree | 54d42a58cd7d509970102ef651ae40461c7180ae /mert/ScorerFactory.h | |
parent | 568a8cc0f49e04919ec70edde1a9bd91786f51ec (diff) |
M mert/TerScorer.cpp
M mert/BleuScorer.h
M mert/ScorerFactory.h
M mert/Scorer.h
M mert/PerScorer.h
M mert/TerScorer.h
M mert/Makefile.am
AM scripts/training/mert-moses-multi.pl
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4299 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 1fa936ba5..9bab8d933 100644 --- a/mert/ScorerFactory.h +++ b/mert/ScorerFactory.h @@ -16,6 +16,7 @@ #include "PerScorer.h" #include "TerScorer.h" #include "CderScorer.h" +#include "MergeScorer.h" using namespace std; @@ -29,6 +30,7 @@ public: types.push_back(string("PER")); types.push_back(string("TER")); types.push_back(string("CDER")); + types.push_back(string("MERGE")); return types; } @@ -41,6 +43,8 @@ public: return (TerScorer*) new TerScorer(config); } else if (type == "CDER") { return (CderScorer*) new CderScorer(config); + } else if (type == "MERGE") { + return (MergeScorer*) new MergeScorer(config); } else { throw runtime_error("Unknown scorer type: " + type); } |