diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-06-26 20:19:09 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-06-26 20:19:09 +0400 |
commit | efc2c6145e3645fdc58001323cbeb9e43fed415a (patch) | |
tree | adb8cea01dda8cb8a98f85884c382673f27e7cdc /moses/FF/PhrasePenalty.cpp | |
parent | 771e792bb43f2cc8ecd18bde19de256262b2af64 (diff) |
beautify
Diffstat (limited to 'moses/FF/PhrasePenalty.cpp')
-rw-r--r-- | moses/FF/PhrasePenalty.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/moses/FF/PhrasePenalty.cpp b/moses/FF/PhrasePenalty.cpp index ac1aa47b8..8b54939a7 100644 --- a/moses/FF/PhrasePenalty.cpp +++ b/moses/FF/PhrasePenalty.cpp @@ -5,14 +5,15 @@ namespace Moses { PhrasePenalty::PhrasePenalty(const std::string &line) -: StatelessFeatureFunction("PhrasePenalty",1, line) { + : StatelessFeatureFunction("PhrasePenalty",1, line) +{ ReadParameters(); } void PhrasePenalty::Evaluate(const Phrase &source - , const TargetPhrase &targetPhrase - , ScoreComponentCollection &scoreBreakdown - , ScoreComponentCollection &estimatedFutureScore) const + , const TargetPhrase &targetPhrase + , ScoreComponentCollection &scoreBreakdown + , ScoreComponentCollection &estimatedFutureScore) const { scoreBreakdown.Assign(this, 1.0f); } |