Merge ../mosesdecoder into hieu

This commit is contained in:
Hieu Hoang 2014-06-03 17:11:16 +01:00
commit fcf9e4b51c
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -655,6 +655,8 @@ void outputPhrasePair(const ExtractionPhrasePair &phrasePair,
phraseTableFile << " |||";
}
phraseTableFile << " |||";
// tree fragments
if (treeFragmentsFlag && !inverseFlag) {
const std::string *bestTreeFragment = phrasePair.FindBestPropertyValue("Tree");