mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 22:14:57 +03:00
remove getFeatureNames()
This commit is contained in:
parent
afd42932db
commit
77d159fca4
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user