diff options
author | Eva <eva@deimos.(none)> | 2012-05-30 04:04:36 +0400 |
---|---|---|
committer | Eva <eva@deimos.(none)> | 2012-05-30 04:04:36 +0400 |
commit | 62d10a2af3f9509bf7680b8549ff1ffd9774dd83 (patch) | |
tree | 8c46bd5501f769185f43ffa300c161ab1f0cc84c /mira/Decoder.h | |
parent | 29b31f6cd9451b1a221574e93ddda39620e769a0 (diff) |
implement CalculateBleu for complete translations, add parameters --disable-bleu-feature and --real-bleu to replace dynamic sentence Bleu with real sentence Bleu
Diffstat (limited to 'mira/Decoder.h')
-rwxr-xr-x | mira/Decoder.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mira/Decoder.h b/mira/Decoder.h index e9f9aafe3..859f97094 100755 --- a/mira/Decoder.h +++ b/mira/Decoder.h @@ -59,6 +59,7 @@ class MosesDecoder { std::vector< float>& bleuScores, std::vector< float>& modelScores, size_t numReturnedTranslations, + bool realBleu, bool distinct, bool avgRefLength, size_t rank, @@ -73,6 +74,7 @@ class MosesDecoder { std::vector< float>& bleuScores, std::vector< float>& modelScores, size_t numReturnedTranslations, + bool realBleu, bool distinct, size_t rank, size_t epoch, @@ -88,6 +90,7 @@ class MosesDecoder { std::vector< float>& bleuScores, std::vector< float>& modelScores, size_t numReturnedTranslations, + bool realBleu, bool distinct, size_t rank, size_t epoch, @@ -110,7 +113,7 @@ class MosesDecoder { size_t getReferenceLength(size_t ref_id); size_t getClosestReferenceLength(size_t ref_id, int hypoLength); size_t getShortestReferenceIndex(size_t ref_id); - void setBleuParameters(bool sentenceBleu, bool scaleByInputLength, bool scaleByAvgInputLength, + void setBleuParameters(bool disable, bool sentenceBleu, bool scaleByInputLength, bool scaleByAvgInputLength, bool scaleByInverseLength, bool scaleByAvgInverseLength, float scaleByX, float historySmoothing, size_t scheme); void setAvgInputLength (float l) { m_bleuScoreFeature->SetAvgInputLength(l); } @@ -129,8 +132,6 @@ class MosesDecoder { Moses::ChartManager *m_chartManager; Moses::Sentence *m_sentence; Moses::BleuScoreFeature *m_bleuScoreFeature; - - }; |