mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-05 02:22:21 +03:00
create hypo from every edge. Increase diversity
This commit is contained in:
parent
c5826035c2
commit
599bc4855a
@ -139,6 +139,21 @@ void Search::Decode(size_t stackInd)
|
||||
|
||||
++pops;
|
||||
}
|
||||
|
||||
// create hypo from every edge. Increase diversity
|
||||
while (!m_queue.empty()) {
|
||||
QueueItem *item = m_queue.top();
|
||||
m_queue.pop();
|
||||
|
||||
if (item->hypoIndex == 0 && item->tpIndex == 0) {
|
||||
CubeEdge &edge = item->edge;
|
||||
|
||||
// add hypo to stack
|
||||
Hypothesis *hypo = item->hypo;
|
||||
//cerr << "hypo=" << *hypo << " " << hypo->GetBitmap() << endl;
|
||||
m_stacks.Add(hypo, m_mgr.GetHypoRecycle());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Search::PostDecode(size_t stackInd)
|
||||
|
Loading…
Reference in New Issue
Block a user