diff options
Diffstat (limited to 'mert/BleuScorer.h')
-rw-r--r-- | mert/BleuScorer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mert/BleuScorer.h b/mert/BleuScorer.h index 8f1384f5a..d0da10bac 100644 --- a/mert/BleuScorer.h +++ b/mert/BleuScorer.h @@ -15,6 +15,8 @@ const int kBleuNgramOrder = 4; class NgramCounts; class Reference; +using namespace std; + /** * Bleu scoring */ @@ -29,6 +31,9 @@ public: explicit BleuScorer(const std::string& config = ""); ~BleuScorer(); + + static vector<float> ScoreNbestList(string scoreFile, string featureFile); + static float sentenceLevelBleuPlusOne(const vector<float>& stats); virtual void setReferenceFiles(const std::vector<std::string>& referenceFiles); virtual void prepareStats(std::size_t sid, const std::string& text, ScoreStats& entry); |