This commit is contained in:
narawat lamaiin
2025-05-24 08:42:50 +07:00
parent d8ea4b70a9
commit 9e29f611df

View File

@@ -308,7 +308,8 @@ function textToDict(text::String, detectKeywords::Vector{String};
dictKey_ = reverse(dictKey) dictKey_ = reverse(dictKey)
# process text from back to front # 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 # Find the position of the keyword in the text
keywordidx = findlast(keyword, remainingtext) keywordidx = findlast(keyword, remainingtext)
dKey = dictKey_[i] dKey = dictKey_[i]