debug message

This commit is contained in:
Hieu Hoang 2015-11-09 00:07:34 +00:00
parent d626244a9c
commit 20a3977e8f
2 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,8 @@ void SearchNormal::Extend(const Hypothesis &hypo, const InputPath &path)
// extend this hypo
const Moses::Bitmap &newBitmap = m_mgr.GetBitmaps().GetBitmap(bitmap, pathRange);
cerr << "DOING " << bitmap << " [" << pathRange.GetStartPos() << " " << pathRange.GetEndPos() << "]" << endl;
const std::vector<TargetPhrases::shared_const_ptr> &tpsAllPt = path.targetPhrases;
for (size_t i = 0; i < tpsAllPt.size(); ++i) {

View File

@ -253,6 +253,8 @@ ExpandAllHypotheses(const Hypothesis &hypothesis, size_t startPos, size_t endPos
const Bitmap &sourceCompleted = hypothesis.GetWordsBitmap();
float futureScore = m_transOptColl.GetFutureScore().CalcFutureScore2( sourceCompleted, startPos, endPos );
cerr << "DOING " << sourceCompleted << " [" << startPos << " " << endPos << "]" << endl;
if (m_options.search.UseEarlyDiscarding()) {
// expected score is based on score of current hypothesis
expectedScore = hypothesis.GetScore();