mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-16 15:00:33 +03:00
unused method
This commit is contained in:
parent
304a6652f7
commit
25b87e14de
@ -36,16 +36,6 @@ void Weights::Init(const FeatureFunctions &ffs)
|
||||
m_weights.resize(totalNumScores, 1);
|
||||
}
|
||||
|
||||
std::ostream &Weights::Debug(std::ostream &out, const System &system) const
|
||||
{
|
||||
const FeatureFunctions &ffs = system.featureFunctions;
|
||||
size_t numScores = ffs.GetNumScores();
|
||||
for (size_t i = 0; i < numScores; ++i) {
|
||||
out << m_weights[i] << " ";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<SCORE> Weights::GetWeights(const FeatureFunction &ff) const
|
||||
{
|
||||
std::vector<SCORE> ret(m_weights.begin() + ff.GetStartInd(), m_weights.begin() + ff.GetStartInd() + ff.GetNumScores());
|
||||
|
@ -27,8 +27,6 @@ public:
|
||||
return m_weights[ind];
|
||||
}
|
||||
|
||||
std::ostream &Debug(std::ostream &out, const System &system) const;
|
||||
|
||||
std::vector<SCORE> GetWeights(const FeatureFunction &ff) const;
|
||||
|
||||
void SetWeights(const FeatureFunctions &ffs, const std::string &ffName, const std::vector<float> &weights);
|
||||
|
Loading…
Reference in New Issue
Block a user