Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2014-04-03 20:21:31 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-04-03 20:21:31 +0400
commit7e7cc64c1d0c3a3fb3b168c8e4824b0048aa5c24 (patch)
tree6817747fb5e5417f47bb4440362ab21ccf6d9a14 /moses/SearchNormal.cpp
parent0953b5cacaf9a99c324f6a381e384b5708f6b5d2 (diff)
debugging
Diffstat (limited to 'moses/SearchNormal.cpp')
-rw-r--r--moses/SearchNormal.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/moses/SearchNormal.cpp b/moses/SearchNormal.cpp
index 37a23b60c..2548bd215 100644
--- a/moses/SearchNormal.cpp
+++ b/moses/SearchNormal.cpp
@@ -57,7 +57,6 @@ void SearchNormal::ProcessSentence()
m_hypoStackColl[0]->AddPrune(hypo);
// go through each stack
- size_t stackNo = 0;
std::vector < HypothesisStack* >::iterator iterStack;
for (iterStack = m_hypoStackColl.begin() ; iterStack != m_hypoStackColl.end() ; ++iterStack) {
// check if decoding ran out of time
@@ -91,13 +90,12 @@ void SearchNormal::ProcessSentence()
IFVERBOSE(2) {
OutputHypoStackSize();
}
- OutputHypoStack(stackNo);
// this stack is fully expanded;
actual_hypoStack = &sourceHypoColl;
- ++stackNo;
}
+ OutputHypoStack();
}
@@ -385,11 +383,8 @@ void SearchNormal::OutputHypoStackSize()
TRACE_ERR( endl);
}
-void SearchNormal::OutputHypoStack(int stack)
+void SearchNormal::OutputHypoStack()
{
- if (stack >= 0) {
- TRACE_ERR( "Stack " << stack << ": " << endl << m_hypoStackColl[stack] << endl);
- } else {
// all stacks
int i = 0;
vector < HypothesisStack* >::iterator iterStack;
@@ -397,7 +392,6 @@ void SearchNormal::OutputHypoStack(int stack)
HypothesisStackNormal &hypoColl = *static_cast<HypothesisStackNormal*>(*iterStack);
TRACE_ERR( "Stack " << i++ << ": " << endl << hypoColl << endl);
}
- }
}
}