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:
authorHieu Hoang <hieu@hoang.co.uk>2013-05-29 21:16:15 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-05-29 21:16:15 +0400
commit6249432407af8730c10bccc7894c0725fcaf5e47 (patch)
tree3ac1f094b9fdc199b04bc5ef209ce00e3596e37d /mert/CderScorer.h
parent59bd7deb4b6b9c4f7b3b7dbb055783528fbc31ca (diff)
beautify
Diffstat (limited to 'mert/CderScorer.h')
-rw-r--r--mert/CderScorer.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/mert/CderScorer.h b/mert/CderScorer.h
index 60b6ad125..bd43ec0d8 100644
--- a/mert/CderScorer.h
+++ b/mert/CderScorer.h
@@ -8,13 +8,14 @@
namespace MosesTuning
{
-
+
/**
* CderScorer class can compute both CDER and WER metric.
*/
-class CderScorer: public StatisticsBasedScorer {
- public:
+class CderScorer: public StatisticsBasedScorer
+{
+public:
explicit CderScorer(const std::string& config, bool allowed_long_jumps = true);
~CderScorer();
@@ -24,11 +25,13 @@ class CderScorer: public StatisticsBasedScorer {
virtual void prepareStatsVector(std::size_t sid, const std::string& text, std::vector<int>& stats);
- virtual std::size_t NumberOfScores() const { return 2; }
+ virtual std::size_t NumberOfScores() const {
+ return 2;
+ }
virtual float calculateScore(const std::vector<int>& comps) const;
- private:
+private:
bool m_allowed_long_jumps;
typedef std::vector<int> sent_t;