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>2013-12-12 00:03:30 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-12-12 00:03:30 +0400
commitbc9ce334d0e432e210cc57c2a99e20e53e62f52e (patch)
treef73b7837d5e4bb8bc8a95cc475c02aa27638d232 /moses/ChartCell.cpp
parentfb356606e9c0177a2618d036296424cd2783395b (diff)
more debug functions
Diffstat (limited to 'moses/ChartCell.cpp')
-rw-r--r--moses/ChartCell.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/moses/ChartCell.cpp b/moses/ChartCell.cpp
index 28d78e5a7..e67e959a4 100644
--- a/moses/ChartCell.cpp
+++ b/moses/ChartCell.cpp
@@ -36,6 +36,7 @@ using namespace std;
namespace Moses
{
+extern bool g_mosesDebug;
ChartCellBase::ChartCellBase(size_t startPos, size_t endPos) :
m_coverage(startPos, endPos),
@@ -94,6 +95,10 @@ void ChartCell::ProcessSentence(const ChartTranslationOptionList &transOptList
for (size_t i = 0; i < transOptList.GetSize(); ++i) {
const ChartTranslationOptions &transOpt = transOptList.Get(i);
RuleCube *ruleCube = new RuleCube(transOpt, allChartCells, m_manager);
+ if (g_mosesDebug) {
+ cerr << *ruleCube << endl;
+ }
+
queue.Add(ruleCube);
}