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 <hieuhoang@gmail.com>2013-07-08 22:02:18 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-07-08 22:02:18 +0400
commit852242b804cbff82aad8a87f6b12b72724656076 (patch)
tree32b1b416308415997c636b51b4bcf428811e9ad3 /OnDiskPt
parent8d857fa26e061ca41a1cc0a63bc14510465d88ae (diff)
beautify
Diffstat (limited to 'OnDiskPt')
-rw-r--r--OnDiskPt/OnDiskWrapper.h10
-rw-r--r--OnDiskPt/TargetPhrase.cpp6
2 files changed, 9 insertions, 7 deletions
diff --git a/OnDiskPt/OnDiskWrapper.h b/OnDiskPt/OnDiskWrapper.h
index ea5f3d8c5..5800857b2 100644
--- a/OnDiskPt/OnDiskWrapper.h
+++ b/OnDiskPt/OnDiskWrapper.h
@@ -95,10 +95,12 @@ public:
return 1;
}
- PhraseNode &GetRootSourceNode()
- { return *m_rootSourceNode; }
- const PhraseNode &GetRootSourceNode() const
- { return *m_rootSourceNode; }
+ PhraseNode &GetRootSourceNode() {
+ return *m_rootSourceNode;
+ }
+ const PhraseNode &GetRootSourceNode() const {
+ return *m_rootSourceNode;
+ }
UINT64 GetMisc(const std::string &key) const;
diff --git a/OnDiskPt/TargetPhrase.cpp b/OnDiskPt/TargetPhrase.cpp
index 1e5cf53d1..281fd139a 100644
--- a/OnDiskPt/TargetPhrase.cpp
+++ b/OnDiskPt/TargetPhrase.cpp
@@ -265,9 +265,9 @@ Moses::TargetPhrase *TargetPhrase::ConvertToMoses(const std::vector<Moses::Facto
ret->SetAlignNonTerm(alignNonTerm);
if (isSyntax) {
- Moses::Word *lhsTarget = new Moses::Word(true);
- GetWord(GetSize() - 1).ConvertToMoses(outputFactors, vocab, *lhsTarget);
- ret->SetTargetLHS(lhsTarget);
+ Moses::Word *lhsTarget = new Moses::Word(true);
+ GetWord(GetSize() - 1).ConvertToMoses(outputFactors, vocab, *lhsTarget);
+ ret->SetTargetLHS(lhsTarget);
}
// set source phrase