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/SemposOverlapping.h
parent59bd7deb4b6b9c4f7b3b7dbb055783528fbc31ca (diff)
beautify
Diffstat (limited to 'mert/SemposOverlapping.h')
-rw-r--r--mert/SemposOverlapping.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/mert/SemposOverlapping.h b/mert/SemposOverlapping.h
index 3b5a99f7f..5eddbaef3 100644
--- a/mert/SemposOverlapping.h
+++ b/mert/SemposOverlapping.h
@@ -9,7 +9,7 @@
namespace MosesTuning
{
-
+
class SemposScorer;
@@ -36,14 +36,15 @@ public:
virtual std::size_t NumberOfScores() const = 0;
};
-class SemposOverlappingFactory {
- public:
+class SemposOverlappingFactory
+{
+public:
static SemposOverlapping* GetOverlapping(const std::string& str, const SemposScorer* sempos);
// dependency injection for unit testing.
static void SetOverlapping(SemposOverlapping* ovr);
- private:
+private:
SemposOverlappingFactory() {}
~SemposOverlappingFactory() {}
};
@@ -62,9 +63,11 @@ public:
virtual std::vector<int> prepareStats(const sentence_t& cand, const sentence_t& ref);
virtual float calculateScore(const std::vector<int>& stats) const;
- virtual std::size_t NumberOfScores() const { return 2; }
+ virtual std::size_t NumberOfScores() const {
+ return 2;
+ }
- private:
+private:
// no copying allowed.
CapMicroOverlapping(const CapMicroOverlapping&);
CapMicroOverlapping& operator=(const CapMicroOverlapping&);
@@ -82,9 +85,11 @@ public:
virtual std::vector<int> prepareStats(const sentence_t& cand, const sentence_t& ref);
virtual float calculateScore(const std::vector<int>& stats) const;
- virtual std::size_t NumberOfScores() const { return kMaxNOC * 2; }
+ virtual std::size_t NumberOfScores() const {
+ return kMaxNOC * 2;
+ }
- private:
+private:
// no copying allowed.
CapMacroOverlapping(const CapMacroOverlapping&);
CapMacroOverlapping& operator=(const CapMacroOverlapping&);