update
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user