mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 14:32:38 +03:00
Merge ../mosesdecoder into hieu
This commit is contained in:
commit
fcf9e4b51c
@ -42,7 +42,7 @@ public:
|
|||||||
ChartCellLabel::Stack &stack = out_.FindOrInsert(static_cast<const TargetPhrase *>(partial.GetNote().vp)->GetTargetLHS());
|
ChartCellLabel::Stack &stack = out_.FindOrInsert(static_cast<const TargetPhrase *>(partial.GetNote().vp)->GetTargetLHS());
|
||||||
Gen *entry = static_cast<Gen*>(stack.incr_generator);
|
Gen *entry = static_cast<Gen*>(stack.incr_generator);
|
||||||
if (!entry) {
|
if (!entry) {
|
||||||
entry = generator_pool_.construct(context_, *vertex_pool_.construct(), best_);
|
entry = generator_pool_.construct(boost::ref(context_), boost::ref(*vertex_pool_.construct()), boost::ref(best_));
|
||||||
stack.incr_generator = entry;
|
stack.incr_generator = entry;
|
||||||
}
|
}
|
||||||
entry->NewHypothesis(partial);
|
entry->NewHypothesis(partial);
|
||||||
|
@ -655,6 +655,8 @@ void outputPhrasePair(const ExtractionPhrasePair &phrasePair,
|
|||||||
phraseTableFile << " |||";
|
phraseTableFile << " |||";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
phraseTableFile << " |||";
|
||||||
|
|
||||||
// tree fragments
|
// tree fragments
|
||||||
if (treeFragmentsFlag && !inverseFlag) {
|
if (treeFragmentsFlag && !inverseFlag) {
|
||||||
const std::string *bestTreeFragment = phrasePair.FindBestPropertyValue("Tree");
|
const std::string *bestTreeFragment = phrasePair.FindBestPropertyValue("Tree");
|
||||||
|
Loading…
Reference in New Issue
Block a user