From f51dbd6f99d7aee07012af81bf54b34591ced895 Mon Sep 17 00:00:00 2001 From: tonaerospace Date: Mon, 23 Dec 2024 07:27:21 +0700 Subject: [PATCH] update --- src/util.jl | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/util.jl b/src/util.jl index 8dd0017..fd66f32 100644 --- a/src/util.jl +++ b/src/util.jl @@ -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 - - - -