SoftSourceSyntacticConstraintsFeature: use -inf rather than min for featureVariant=1

This commit is contained in:
Matthias Huck 2015-01-20 21:43:23 +00:00
parent b50c197313
commit ec547fa56a

View File

@ -531,7 +531,7 @@ void SoftSourceSyntacticConstraintsFeature::EvaluateWithSourceContext(const Inpu
break;
case 1:
newScores[0] = ( (hasCompleteTreeInputMatch || isGlueGrammarRule || isUnkRule) ? 0 : std::numeric_limits<float>::min() );
newScores[0] = ( (hasCompleteTreeInputMatch || isGlueGrammarRule || isUnkRule) ? 0 : -std::numeric_limits<float>::infinity() );
break;
default: