diff options
author | Sara Stymne <sara.stymne@lingfil.uu.se> | 2013-07-03 16:03:58 +0400 |
---|---|---|
committer | Sara Stymne <sara.stymne@lingfil.uu.se> | 2013-07-03 16:03:58 +0400 |
commit | b2eb42ed12ff64d0aa4b2842acb9efb8280e9ce3 (patch) | |
tree | 3fc869d98fd7ea99922c400adda8b295ab6ab7ee /mert/BleuScorer.h | |
parent | 4e4cf1e313a1acb97a2d0af4a1a0f51c9a3e027f (diff) |
added document level Bleu scoring to mert
Diffstat (limited to 'mert/BleuScorer.h')
-rw-r--r-- | mert/BleuScorer.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mert/BleuScorer.h b/mert/BleuScorer.h index 248b3e1d1..92d7fb9d5 100644 --- a/mert/BleuScorer.h +++ b/mert/BleuScorer.h @@ -65,14 +65,18 @@ public: bool OpenReference(const char* filename, std::size_t file_id); // NOTE: this function is used for unit testing. - bool OpenReferenceStream(std::istream* is, std::size_t file_id); + virtual bool OpenReferenceStream(std::istream* is, std::size_t file_id); -private: + //private: +protected: ReferenceLengthType m_ref_length_type; // reference translations. ScopedVector<Reference> m_references; + // constructor used by subclasses + BleuScorer(const std::string& name, const std::string& config): StatisticsBasedScorer(name,config) {} + // no copying allowed BleuScorer(const BleuScorer&); BleuScorer& operator=(const BleuScorer&); |