From dd050cbcd484c630bde453db540b3342460caff4 Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Thu, 13 Feb 2020 18:04:43 +0100 Subject: [PATCH] Fixed Config::printForDebug --- reading_machine/src/Config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reading_machine/src/Config.cpp b/reading_machine/src/Config.cpp index 40feaf4..6043cea 100644 --- a/reading_machine/src/Config.cpp +++ b/reading_machine/src/Config.cpp @@ -71,7 +71,7 @@ void Config::print(FILE * dest) const } for (unsigned int i = 0; i < getNbColumns()-1; i++) { - auto & colContent = isPredicted(getColName(i)) ? getLastNotEmptyHypConst(i, getFirstLineIndex()+line) : getLastNotEmptyConst(i, getFirstLineIndex()+line); + auto & colContent = isPredicted(getColName(i)) ? getLastNotEmptyHypConst(i, getFirstLineIndex()+line) : getLastNotEmptyConst(i, line); fmt::print(dest, "{}{}", colContent, i < getNbColumns()-2 ? "\t" : "\n"); } if (getLastNotEmptyConst(EOSColName, getFirstLineIndex()+line) == EOSSymbol1) @@ -109,7 +109,7 @@ void Config::printForDebug(FILE * dest) const toPrint.back().emplace_back(line == (int)wordIndex ? "=>" : ""); for (unsigned int i = 0; i < getNbColumns(); i++) { - auto & colContent = isPredicted(getColName(i)) ? getLastNotEmptyHypConst(i, line) : getLastNotEmptyConst(i, getFirstLineIndex()+line); + auto & colContent = isPredicted(getColName(i)) ? getLastNotEmptyHypConst(i, line) : getLastNotEmptyConst(i, line); toPrint.back().emplace_back(util::shrink(colContent, maxWordLength)); } } -- GitLab