mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
change \!UnknownWordPenalty to UnknownWordPenalty
This commit is contained in:
parent
cb270a76be
commit
4f3805a0d7
@ -466,7 +466,7 @@ void OutputAllFeatureScores( std::ostream& out, const TranslationSystem* system,
|
||||
|
||||
const vector<const StatelessFeatureFunction*>& slf = system->GetStatelessFeatureFunctions();
|
||||
for( size_t i=0; i<slf.size(); i++ )
|
||||
if (slf[i]->GetScoreProducerDescription() != "!UnknownWordPenalty" &&
|
||||
if (slf[i]->GetScoreProducerDescription() != "UnknownWordPenalty" &&
|
||||
slf[i]->GetScoreProducerDescription() != "Generation")
|
||||
OutputFeatureScores( out, path, slf[i], lastName );
|
||||
}
|
||||
|
@ -341,7 +341,7 @@ static void ShowWeights()
|
||||
PrintFeatureWeight(sff[i]);
|
||||
}
|
||||
for (size_t i = 0; i < slf.size(); ++i) {
|
||||
if (slf[i]->GetScoreProducerDescription() != "!UnknownWordPenalty" &&
|
||||
if (slf[i]->GetScoreProducerDescription() != "UnknownWordPenalty" &&
|
||||
slf[i]->GetScoreProducerDescription() != "PhraseModel" &&
|
||||
slf[i]->GetScoreProducerDescription() != "Generation")
|
||||
{
|
||||
|
@ -63,7 +63,7 @@ public:
|
||||
class UnknownWordPenaltyProducer : public StatelessFeatureFunction
|
||||
{
|
||||
public:
|
||||
UnknownWordPenaltyProducer() : StatelessFeatureFunction("!UnknownWordPenalty",1) {}
|
||||
UnknownWordPenaltyProducer() : StatelessFeatureFunction("UnknownWordPenalty",1) {}
|
||||
|
||||
virtual bool ComputeValueInTranslationOption() const;
|
||||
void Evaluate( const PhraseBasedFeatureContext& context,
|
||||
|
Loading…
Reference in New Issue
Block a user