changed return value of GetNumScoreComponents() to size_t to match virt.func.declaration in ScoreProducer.h

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@896 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
bojar 2006-10-17 15:18:04 +00:00
parent 0cd79a9b7d
commit fd6b4081cd
4 changed files with 8 additions and 8 deletions

View File

@ -9,7 +9,7 @@ DistortionScoreProducer::DistortionScoreProducer()
const_cast<ScoreIndexManager&>(StaticData::Instance()->GetScoreIndexManager()).AddScoreProducer(this);
}
unsigned int DistortionScoreProducer::GetNumScoreComponents() const
size_t DistortionScoreProducer::GetNumScoreComponents() const
{
return 1;
}
@ -37,7 +37,7 @@ WordPenaltyProducer::WordPenaltyProducer()
const_cast<ScoreIndexManager&>(StaticData::Instance()->GetScoreIndexManager()).AddScoreProducer(this);
}
unsigned int WordPenaltyProducer::GetNumScoreComponents() const
size_t WordPenaltyProducer::GetNumScoreComponents() const
{
return 1;
}
@ -48,7 +48,7 @@ const std::string WordPenaltyProducer::GetScoreProducerDescription() const
}
unsigned int UnknownWordPenaltyProducer::GetNumScoreComponents() const
size_t UnknownWordPenaltyProducer::GetNumScoreComponents() const
{
return 1;
}

View File

@ -15,7 +15,7 @@ public:
float CalculateDistortionScore(const WordsRange &prev, const WordsRange &curr) const;
unsigned int GetNumScoreComponents() const;
size_t GetNumScoreComponents() const;
const std::string GetScoreProducerDescription() const;
};
@ -26,7 +26,7 @@ class WordPenaltyProducer : public ScoreProducer {
public:
WordPenaltyProducer();
unsigned int GetNumScoreComponents() const;
size_t GetNumScoreComponents() const;
const std::string GetScoreProducerDescription() const;
};
@ -35,7 +35,7 @@ class UnknownWordPenaltyProducer : public ScoreProducer {
public:
UnknownWordPenaltyProducer();
unsigned int GetNumScoreComponents() const;
size_t GetNumScoreComponents() const;
const std::string GetScoreProducerDescription() const;
};

View File

@ -248,7 +248,7 @@ std::vector<float> LexicalReordering::CalcScore(Hypothesis *hypothesis)
}
/** return the number of scores produced by this model */
unsigned int LexicalReordering::GetNumScoreComponents() const
size_t LexicalReordering::GetNumScoreComponents() const
{
return m_numScores;
}

View File

@ -115,6 +115,6 @@ public:
float GetProbability(Hypothesis *hypothesis, int orientation);
unsigned int GetNumScoreComponents() const;
size_t GetNumScoreComponents() const;
const std::string GetScoreProducerDescription() const;
};