This commit is contained in:
2024-12-23 07:27:21 +07:00
parent fb2de59528
commit f51dbd6f99

View File

@@ -887,23 +887,6 @@ function remove_french_accents(text::AbstractString)::AbstractString
end
function countGivenWords(text::String, words::Vector{String})::Vector{Int}
count = []
# loop through each word in words
for word in words
# initialize a counter for the current word
splittext = split(text, word)
splittext_length = length(splittext)
thisWordCount = splittext_length - 1
push!(count, thisWordCount)
end
return count
end