diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-05-10 02:51:05 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-05-10 02:51:05 +0400 |
commit | 9c9d88a78a13d7bd5ad4f10b06c355519e4e41ad (patch) | |
tree | 7961401877857cf42849916ef7aaba8258a1bc55 /mert/InterpolatedScorer.h | |
parent | aa269bdb4d82207d1381069c256745780f7cd798 (diff) |
Avoid "using namespace std" in headers.
Diffstat (limited to 'mert/InterpolatedScorer.h')
-rw-r--r-- | mert/InterpolatedScorer.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mert/InterpolatedScorer.h b/mert/InterpolatedScorer.h index 7ee7e5eba..321b50d20 100644 --- a/mert/InterpolatedScorer.h +++ b/mert/InterpolatedScorer.h @@ -15,17 +15,17 @@ class InterpolatedScorer : public Scorer { public: // name would be: "HAMMING,BLEU" or similar - InterpolatedScorer(const string& name, const string& config); + InterpolatedScorer(const std::string& name, const std::string& config); virtual ~InterpolatedScorer() {} virtual void score(const candidates_t& candidates, const diffs_t& diffs, statscores_t& scores) const; - virtual void setReferenceFiles(const vector<string>& referenceFiles); - virtual void prepareStats(size_t sid, const string& text, ScoreStats& entry); + virtual void setReferenceFiles(const std::vector<std::string>& referenceFiles); + virtual void prepareStats(std::size_t sid, const std::string& text, ScoreStats& entry); - virtual size_t NumberOfScores() const { - size_t sz = 0; + virtual std::size_t NumberOfScores() const { + std::size_t sz = 0; for (ScopedVector<Scorer>::const_iterator itsc = m_scorers.begin(); itsc != m_scorers.end(); ++itsc) { sz += (*itsc)->NumberOfScores(); @@ -38,9 +38,9 @@ public: /** * Set the factors, which should be used for this metric */ - virtual void setFactors(const string& factors); + virtual void setFactors(const std::string& factors); - virtual void setFilter(const string& filterCommand); + virtual void setFilter(const std::string& filterCommand); protected: ScopedVector<Scorer> m_scorers; @@ -49,7 +49,7 @@ protected: // by Scorer objects. ScopedVector<ScoreData> m_scorers_score_data; - vector<float> m_scorer_weights; + std::vector<float> m_scorer_weights; }; #endif // MERT_INTERPOLATED_SCORER_H_ |