diff --git a/decoder/src/Decoder.cpp b/decoder/src/Decoder.cpp index 44a8edc0f8cbc8d69ced8c273f63e9824af35ecf..a24f6a230c22326a8bbc3c74e810b2b45ac90708 100644 --- a/decoder/src/Decoder.cpp +++ b/decoder/src/Decoder.cpp @@ -44,6 +44,10 @@ void Decoder::decode(BaseConfig & config, std::size_t beamSize, bool debug, bool chosenTransition = i; bestScore = score; } + if (debug) + { + fmt::print(stderr, "{} {:7.2f} {}\n", machine.getTransitionSet().getTransition(i)->appliable(config) ? "*" : " ", score, machine.getTransitionSet().getTransition(i)->getName()); + } } } catch(std::exception & e) {util::myThrow(e.what());} diff --git a/reading_machine/src/Config.cpp b/reading_machine/src/Config.cpp index 03179a020661091f63d51606249c106e4fd55074..0429372f3d41cd61514f54f4fd75019a8a646099 100644 --- a/reading_machine/src/Config.cpp +++ b/reading_machine/src/Config.cpp @@ -212,6 +212,8 @@ void Config::printForDebug(FILE * dest) const if (toPrint[line].back() == EOSSymbol1) fmt::print(dest, "\n"); } + + fmt::print(dest, "{}\n", longLine); } Config::String & Config::getLastNotEmpty(int colIndex, int lineIndex)