remove getFeatureNames()

This commit is contained in:
Barry Haddow 2011-11-16 10:40:04 +00:00
parent afd42932db
commit 77d159fca4
2 changed files with 0 additions and 24 deletions

View File

@ -34,28 +34,5 @@ ScoreProducer::ScoreProducer(const std::string& description, size_t numScoreComp
ScoreProducer::~ScoreProducer() {}
const vector<FName>& ScoreProducer::GetFeatureNames() const
{
if (m_names.size() != GetNumScoreComponents() &&
unlimited != GetNumScoreComponents())
{
const string& desc = GetScoreProducerDescription();
if (GetNumScoreComponents() == 1)
{
m_names.push_back(FName(desc));
}
else
{
for (size_t i = 1; i <= GetNumScoreComponents(); ++i)
{
ostringstream id;
id << i;
m_names.push_back(FName(desc,id.str()));
}
}
}
return m_names;
}
}

View File

@ -19,7 +19,6 @@ namespace Moses
class ScoreProducer
{
private:
mutable std::vector<FName> m_names; //for features with fixed number of values
std::string m_description;
bool m_reportSparseFeatures;
size_t m_numScoreComponents;