diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 15:24:48 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 15:24:48 +0400 |
commit | 30fa97e404d773a6359c1063405cbcab2db20f6a (patch) | |
tree | 8fdd253842332a4191c0328b58933d5faf19bee8 /mert/BleuScorer.h | |
parent | d742341176028a968c2591b1856f5439cdbe7fc5 (diff) |
Move reference length type into a private member of BleuScorer.
The reason is that the type is used as internal purpose.
Diffstat (limited to 'mert/BleuScorer.h')
-rw-r--r-- | mert/BleuScorer.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mert/BleuScorer.h b/mert/BleuScorer.h index a10b09a7a..f4d568639 100644 --- a/mert/BleuScorer.h +++ b/mert/BleuScorer.h @@ -12,9 +12,6 @@ using namespace std; -enum BleuReferenceLengthStrategy { BLEU_AVERAGE, BLEU_SHORTEST, BLEU_CLOSEST }; - - /** * Bleu scoring */ @@ -33,6 +30,12 @@ public: } private: + enum ReferenceLengthType { + AVERAGE, + SHORTEST, + CLOSEST, + }; + //Used to construct the ngram map struct CompareNgrams { bool operator()(const vector<int>& a, const vector<int>& b) const { @@ -67,7 +70,7 @@ private: void dump_counts(counts_t& counts) const; const int kLENGTH; - BleuReferenceLengthStrategy _refLengthStrategy; + ReferenceLengthType m_ref_length_type; // data extracted from reference files refcounts_t _refcounts; |