diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-05-02 13:45:24 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-05-02 13:45:24 +0300 |
commit | cc8c6b7b10abd8118014635609f7658f6a7a1857 (patch) | |
tree | cab374bcbf73ff97782e9131380e4f32dbeb1e67 /moses/Syntax | |
parent | a4a7c14593766ab188e1d6ae1c29e67ed201d412 (diff) |
beautify
Diffstat (limited to 'moses/Syntax')
-rw-r--r-- | moses/Syntax/F2S/HyperTreeLoader.cpp | 2 | ||||
-rw-r--r-- | moses/Syntax/F2S/HyperTreeLoader.h | 2 | ||||
-rw-r--r-- | moses/Syntax/F2S/Manager-inl.h | 2 | ||||
-rw-r--r-- | moses/Syntax/F2S/Manager.h | 2 | ||||
-rw-r--r-- | moses/Syntax/InputWeightFF.cpp | 12 | ||||
-rw-r--r-- | moses/Syntax/InputWeightFF.h | 2 |
6 files changed, 11 insertions, 11 deletions
diff --git a/moses/Syntax/F2S/HyperTreeLoader.cpp b/moses/Syntax/F2S/HyperTreeLoader.cpp index bd19cbace..21d5b0447 100644 --- a/moses/Syntax/F2S/HyperTreeLoader.cpp +++ b/moses/Syntax/F2S/HyperTreeLoader.cpp @@ -146,7 +146,7 @@ bool HyperTreeLoader::Load(const std::vector<FactorType> &input, } void HyperTreeLoader::ExtractSourceTerminalSetFromHyperPath( - const HyperPath &hp, boost::unordered_set<std::size_t> &sourceTerminalSet) + const HyperPath &hp, boost::unordered_set<std::size_t> &sourceTerminalSet) { for (std::vector<HyperPath::NodeSeq>::const_iterator p = hp.nodeSeqs.begin(); p != hp.nodeSeqs.end(); ++p) { diff --git a/moses/Syntax/F2S/HyperTreeLoader.h b/moses/Syntax/F2S/HyperTreeLoader.h index 088c7eaf5..eebf1185a 100644 --- a/moses/Syntax/F2S/HyperTreeLoader.h +++ b/moses/Syntax/F2S/HyperTreeLoader.h @@ -31,7 +31,7 @@ public: private: void ExtractSourceTerminalSetFromHyperPath( - const HyperPath &, boost::unordered_set<std::size_t> &); + const HyperPath &, boost::unordered_set<std::size_t> &); }; } // namespace F2S diff --git a/moses/Syntax/F2S/Manager-inl.h b/moses/Syntax/F2S/Manager-inl.h index 3aedc640e..55f85e888 100644 --- a/moses/Syntax/F2S/Manager-inl.h +++ b/moses/Syntax/F2S/Manager-inl.h @@ -39,7 +39,7 @@ Manager<RuleMatcher>::Manager(ttasksptr const& ttask) if (const ForestInput *p = dynamic_cast<const ForestInput*>(&m_source)) { m_forest = p->GetForest(); m_rootVertex = p->GetRootVertex(); - m_sentenceLength = p->GetSize(); + m_sentenceLength = p->GetSize(); } else if (const TreeInput *p = dynamic_cast<const TreeInput*>(&m_source)) { T2S::InputTreeBuilder builder; T2S::InputTree tmpTree; diff --git a/moses/Syntax/F2S/Manager.h b/moses/Syntax/F2S/Manager.h index 1dcab4f5e..bcf1ff2bd 100644 --- a/moses/Syntax/F2S/Manager.h +++ b/moses/Syntax/F2S/Manager.h @@ -39,7 +39,7 @@ public: typedef std::vector<boost::shared_ptr<KBestExtractor::Derivation> > kBestList_t; void ExtractKBest(std::size_t k, kBestList_t& kBestList, - bool onlyDistinct=false) const; + bool onlyDistinct=false) const; void OutputDetailedTranslationReport(OutputCollector *collector) const; diff --git a/moses/Syntax/InputWeightFF.cpp b/moses/Syntax/InputWeightFF.cpp index af44e31ec..8bb88c6ac 100644 --- a/moses/Syntax/InputWeightFF.cpp +++ b/moses/Syntax/InputWeightFF.cpp @@ -11,34 +11,34 @@ namespace Syntax { InputWeightFF::InputWeightFF(const std::string &line) - : StatelessFeatureFunction(1, line) + : StatelessFeatureFunction(1, line) { ReadParameters(); } void InputWeightFF::EvaluateWhenApplied(const Hypothesis& hypo, - ScoreComponentCollection* accumulator) const + ScoreComponentCollection* accumulator) const { // TODO Throw exception. assert(false); } void InputWeightFF::EvaluateWhenApplied(const ChartHypothesis &hypo, - ScoreComponentCollection* accumulator) const + ScoreComponentCollection* accumulator) const { // TODO Throw exception. assert(false); } void InputWeightFF::EvaluateWhenApplied( - const Syntax::SHyperedge &hyperedge, - ScoreComponentCollection* accumulator) const + const Syntax::SHyperedge &hyperedge, + ScoreComponentCollection* accumulator) const { accumulator->PlusEquals(this, hyperedge.label.inputWeight); } void InputWeightFF::SetParameter(const std::string& key, - const std::string& value) + const std::string& value) { StatelessFeatureFunction::SetParameter(key, value); } diff --git a/moses/Syntax/InputWeightFF.h b/moses/Syntax/InputWeightFF.h index bdda1d922..127834e64 100644 --- a/moses/Syntax/InputWeightFF.h +++ b/moses/Syntax/InputWeightFF.h @@ -42,7 +42,7 @@ public: ScoreComponentCollection *) const {} void EvaluateTranslationOptionListWithSourceContext( - const InputType &, const TranslationOptionList &) const {} + const InputType &, const TranslationOptionList &) const {} }; } // Syntax |