From 45e70a7690382f1c212e7135ca18c2c9dfa73cc8 Mon Sep 17 00:00:00 2001 From: dehilsterlexis Date: Sat, 8 Jun 2024 21:12:17 -0400 Subject: [PATCH] NLP-ENGINE-417 fixed fired for dictionary phrases Signed-off-by: dehilsterlexis --- lite/dicttok.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lite/dicttok.cpp b/lite/dicttok.cpp index d2c9b10..ced6181 100644 --- a/lite/dicttok.cpp +++ b/lite/dicttok.cpp @@ -280,7 +280,6 @@ bool DICTTok::ApplyDictFiles() { } Pn *pn = node->getData(); - pn->setFired(true); if (reduces) { long start = pn->getStart(); @@ -322,8 +321,11 @@ bool DICTTok::ApplyDictFiles() { suggestedN->getData()->setText(str); findAttrs(suggestedN, con, name, true); - node = suggestedN; + node = suggestedN; + pn = node->getData(); } + + pn->setFired(true); } last = node;