mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-27 03:49:57 +03:00
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:
parent
0cd79a9b7d
commit
fd6b4081cd
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -115,6 +115,6 @@ public:
|
||||
|
||||
float GetProbability(Hypothesis *hypothesis, int orientation);
|
||||
|
||||
unsigned int GetNumScoreComponents() const;
|
||||
size_t GetNumScoreComponents() const;
|
||||
const std::string GetScoreProducerDescription() const;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user