Skip to content

Commit

Permalink
SoftSourceSyntacticConstraintsFeature: use -inf rather than min for f…
Browse files Browse the repository at this point in the history
…eatureVariant=1
  • Loading branch information
Matthias Huck committed Jan 20, 2015
1 parent b50c197 commit ec547fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moses/FF/SoftSourceSyntacticConstraintsFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ec547fa

Please sign in to comment.