mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +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());
|
||||
Gen *entry = static_cast<Gen*>(stack.incr_generator);
|
||||
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;
|
||||
}
|
||||
entry->NewHypothesis(partial);
|
||||
|
@ -655,6 +655,8 @@ void outputPhrasePair(const ExtractionPhrasePair &phrasePair,
|
||||
phraseTableFile << " |||";
|
||||
}
|
||||
|
||||
phraseTableFile << " |||";
|
||||
|
||||
// tree fragments
|
||||
if (treeFragmentsFlag && !inverseFlag) {
|
||||
const std::string *bestTreeFragment = phrasePair.FindBestPropertyValue("Tree");
|
||||
|
Loading…
Reference in New Issue
Block a user