Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTetsuo Kiso <tetsuo-s@is.naist.jp>2012-05-10 02:51:05 +0400
committerTetsuo Kiso <tetsuo-s@is.naist.jp>2012-05-10 02:51:05 +0400
commit9c9d88a78a13d7bd5ad4f10b06c355519e4e41ad (patch)
tree7961401877857cf42849916ef7aaba8258a1bc55 /mert/InterpolatedScorer.h
parentaa269bdb4d82207d1381069c256745780f7cd798 (diff)
Avoid "using namespace std" in headers.
Diffstat (limited to 'mert/InterpolatedScorer.h')
-rw-r--r--mert/InterpolatedScorer.h16
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_