From 988102c41d16e42c39974b51b966ce20a11fbb5d Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 10 Oct 2021 20:05:06 +0200 Subject: [PATCH] Disable incomplete code Signed-off-by: Stefan Weil --- src/lstm/recodebeam.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lstm/recodebeam.cpp b/src/lstm/recodebeam.cpp index 5d3be6abb..22ee776e6 100644 --- a/src/lstm/recodebeam.cpp +++ b/src/lstm/recodebeam.cpp @@ -439,13 +439,14 @@ void RecodeBeamSearch::extractSymbolChoices(const UNICHARSET *unicharset) { bestPos = i; } } - // TODO: bestCode is currently unused (see commit 2dd5d0d60). +#if 0 // TODO: bestCode is currently unused (see commit 2dd5d0d60). int bestCode = -10; for (auto &node : best_nodes) { if (node->unichar_id == unichar_ids[bestPos]) { bestCode = node->code; } } +#endif // Exclude the best choice for the followup decoding. std::unordered_set excludeCodeList; for (auto &best_node : best_nodes) {