This commit is contained in:
Hieu Hoang 2016-03-25 17:24:05 +00:00
parent dc5201ee6e
commit 4339332ddc
3 changed files with 4 additions and 6 deletions

View File

@ -47,11 +47,9 @@ std::string BidirectionalReorderingState::ToString() const
size_t BidirectionalReorderingState::hash() const
{
cerr << "hashing " << *this << endl;
cerr << "BEFORE hash " << m_backward->ToString() << endl;
size_t ret = m_backward->hash();
cerr << "HH1" << endl;
boost::hash_combine(ret, m_forward->hash());
cerr << "ret=" << ret << endl;
return ret;
}

View File

@ -134,7 +134,7 @@ CreateLRState() const
case Bidirectional:
if (m_phraseBased) {
bwd = new PhraseBasedReorderingState(*this, Backward, offset);
cerr << "bwd=" << bwd << bwd->ToString() << endl;
//cerr << "bwd=" << bwd << bwd->ToString() << endl;
}
else {
//bwd = new HReorderingBackwardState(*this, offset);
@ -144,7 +144,7 @@ CreateLRState() const
case Forward:
if (m_phraseBased) {
fwd = new PhraseBasedReorderingState(*this, Forward, offset);
cerr << "fwd=" << fwd << fwd->ToString() << endl;
//cerr << "fwd=" << fwd << fwd->ToString() << endl;
}
else {
//fwd = new HReorderingForwardState(*this, input.GetSize(), offset);

View File

@ -58,7 +58,7 @@ void Search::Decode()
Hypothesis *initHypo = Hypothesis::Create(mgr.GetSystemPool(), mgr);
initHypo->Init(mgr, mgr.GetInputPaths().GetBlank(), mgr.GetInitPhrase(), initBitmap);
initHypo->EmptyHypothesisState(mgr.GetInput());
cerr << "initHypo=" << *initHypo << endl;
//cerr << "initHypo=" << *initHypo << endl;
cerr << "BEFORE Add" << endl;
m_stack.Add(initHypo, mgr.GetHypoRecycle(), mgr.arcLists);