mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
delete hardcoded if() statements for show weights. Excluded UnknownWordPenalty and made sure PhraseModel & Generation is in particular order
This commit is contained in:
parent
e3def0bc78
commit
28b70a5697
@ -341,22 +341,8 @@ static void ShowWeights()
|
||||
PrintFeatureWeight(sff[i]);
|
||||
}
|
||||
for (size_t i = 0; i < slf.size(); ++i) {
|
||||
if (slf[i]->GetScoreProducerDescription() != "UnknownWordPenalty" &&
|
||||
slf[i]->GetScoreProducerDescription() != "PhraseModel" &&
|
||||
slf[i]->GetScoreProducerDescription() != "Generation")
|
||||
{
|
||||
PrintFeatureWeight(slf[i]);
|
||||
}
|
||||
PrintFeatureWeight(slf[i]);
|
||||
}
|
||||
const vector<PhraseDictionaryFeature*>& pds = system.GetPhraseDictionaries();
|
||||
for( size_t i=0; i<pds.size(); i++ ) {
|
||||
PrintFeatureWeight(pds[i]);
|
||||
}
|
||||
const vector<GenerationDictionary*>& gds = system.GetGenerationDictionaries();
|
||||
for( size_t i=0; i<gds.size(); i++ ) {
|
||||
PrintFeatureWeight(gds[i]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} //namespace
|
||||
|
Loading…
Reference in New Issue
Block a user