Sorensen–Dice coefficient: Difference between revisions

m
m (→‎Julia: char handling)
Line 211:
words = split(lowercase(txt), r"\s+")
for w in words
ifa length= collect(w) < 3
if length(a) < 3
push!(tokens, w)
else
a = collect(w)
for i in 1:length(a)-1
push!(tokens, String(a[i:i+1]))
4,105

edits