diff options
author | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-02-24 15:42:19 +0300 |
---|---|---|
committer | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-02-24 15:42:19 +0300 |
commit | 148c1e8305fbcf8dc0acd021fe5825842e0b3c8d (patch) | |
tree | 04041cbc625ff61db8d94471c6d2d1c61264f653 /mert/ScorerFactory.h | |
parent | a59ad11b58acf5dd64ec6f5990bb4ef5b74ebf28 (diff) |
run beautify.perl. Consistent formatting for .h & .cpp files
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3899 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/ScorerFactory.h')
-rw-r--r-- | mert/ScorerFactory.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/mert/ScorerFactory.h b/mert/ScorerFactory.h index 2ae9be38e..51882ed0a 100644 --- a/mert/ScorerFactory.h +++ b/mert/ScorerFactory.h @@ -17,25 +17,26 @@ using namespace std; -class ScorerFactory { +class ScorerFactory +{ - public: - vector<string> getTypes() { - vector<string> types; - types.push_back(string("BLEU")); - types.push_back(string("PER")); - return types; - } +public: + vector<string> getTypes() { + vector<string> types; + types.push_back(string("BLEU")); + types.push_back(string("PER")); + return types; + } - Scorer* getScorer(const string& type, const string& config = "") { - if (type == "BLEU") { - return (BleuScorer*) new BleuScorer(config); - } else if (type == "PER") { - return (PerScorer*) new PerScorer(config); - } else { - throw runtime_error("Unknown scorer type: " + type); - } - } + Scorer* getScorer(const string& type, const string& config = "") { + if (type == "BLEU") { + return (BleuScorer*) new BleuScorer(config); + } else if (type == "PER") { + return (PerScorer*) new PerScorer(config); + } else { + throw runtime_error("Unknown scorer type: " + type); + } + } }; #endif //__SCORER_FACTORY_H |