diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-11-04 19:43:36 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-11-04 19:43:36 +0400 |
commit | cccfb9a0c9457517a5298c3cd497eff27ee6adfa (patch) | |
tree | 1def495a5e35fab3270d61ee929d9192a9ce138a /mert/BleuScorer.h | |
parent | 62fa6d6f289be3cb181e50019810335bda815108 (diff) |
Using namespace std in a header file pollutes the global namespace.
Using directives should be put into the implementation files.
Diffstat (limited to 'mert/BleuScorer.h')
-rw-r--r-- | mert/BleuScorer.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/mert/BleuScorer.h b/mert/BleuScorer.h index 1927183a9..2e5a0f54c 100644 --- a/mert/BleuScorer.h +++ b/mert/BleuScorer.h @@ -16,9 +16,7 @@ namespace MosesTuning const int kBleuNgramOrder = 4; class NgramCounts; -class Reference; - -using namespace std; +class Reference; /** * Bleu scoring @@ -34,9 +32,9 @@ public: explicit BleuScorer(const std::string& config = ""); ~BleuScorer(); - - static vector<float> ScoreNbestList(string scoreFile, string featureFile); - static float sentenceLevelBleuPlusOne(const vector<float>& stats); + + static std::vector<float> ScoreNbestList(const std::string& scoreFile, const std::string& featureFile); + static float sentenceLevelBleuPlusOne(const std::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); |