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-09-17 17:26:25 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-09-17 17:26:25 +0400
commit6c739bcbf56ed7386aefb987d7c51a45242cd06f (patch)
tree507459f907ca589596863889ccaffb07fbd81e9e /moses/ChartHypothesis.cpp
parent5ebb81a17af4008768f8fd93d7ad31442325f47c (diff)
constrained decoding FF works for both pb and hiero
Diffstat (limited to 'moses/ChartHypothesis.cpp')
-rw-r--r--moses/ChartHypothesis.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/ChartHypothesis.cpp b/moses/ChartHypothesis.cpp
index 23896b782..de57279fc 100644
--- a/moses/ChartHypothesis.cpp
+++ b/moses/ChartHypothesis.cpp
@@ -87,7 +87,7 @@ ChartHypothesis::~ChartHypothesis()
/** Create full output phrase that is contained in the hypothesis (and its children)
* \param outPhrase full output phrase as return argument
*/
-void ChartHypothesis::CreateOutputPhrase(Phrase &outPhrase) const
+void ChartHypothesis::GetOutputPhrase(Phrase &outPhrase) const
{
for (size_t pos = 0; pos < GetCurrTargetPhrase().GetSize(); ++pos) {
@@ -96,7 +96,7 @@ void ChartHypothesis::CreateOutputPhrase(Phrase &outPhrase) const
// non-term. fill out with prev hypo
size_t nonTermInd = GetCurrTargetPhrase().GetAlignNonTerm().GetNonTermIndexMap()[pos];
const ChartHypothesis *prevHypo = m_prevHypos[nonTermInd];
- prevHypo->CreateOutputPhrase(outPhrase);
+ prevHypo->GetOutputPhrase(outPhrase);
} else {
outPhrase.AddWord(word);
}
@@ -107,7 +107,7 @@ void ChartHypothesis::CreateOutputPhrase(Phrase &outPhrase) const
Phrase ChartHypothesis::GetOutputPhrase() const
{
Phrase outPhrase(ARRAY_SIZE_INCR);
- CreateOutputPhrase(outPhrase);
+ GetOutputPhrase(outPhrase);
return outPhrase;
}