Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2013-06-26 20:19:09 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-06-26 20:19:09 +0400
commitefc2c6145e3645fdc58001323cbeb9e43fed415a (patch)
treeadb8cea01dda8cb8a98f85884c382673f27e7cdc /moses/FF/PhrasePenalty.cpp
parent771e792bb43f2cc8ecd18bde19de256262b2af64 (diff)
beautify
Diffstat (limited to 'moses/FF/PhrasePenalty.cpp')
-rw-r--r--moses/FF/PhrasePenalty.cpp9
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);
}