mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
debug
This commit is contained in:
parent
dc5201ee6e
commit
4339332ddc
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user