From 9e29f611dfb82c2b3a9edc2080ed5797a5c452b2 Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Sat, 24 May 2025 08:42:50 +0700 Subject: [PATCH] update --- src/util.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util.jl b/src/util.jl index def7c27..3dabd31 100644 --- a/src/util.jl +++ b/src/util.jl @@ -308,7 +308,8 @@ function textToDict(text::String, detectKeywords::Vector{String}; dictKey_ = reverse(dictKey) # process text from back to front - for (i,keyword) in enumerate(reverse(kw)) + rkw = reverse(kw) + for (i,keyword) in enumerate(rkw) # Find the position of the keyword in the text keywordidx = findlast(keyword, remainingtext) dKey = dictKey_[i]