pull/7/head v0.3.0
matthieugomez 2018-07-05 10:32:10 -04:00
parent 0d1f2e7e9f
commit 5d535e3e06
8 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
@time f(Jaccard(2), x, y)
@time f(Cosine(2), x, y)

View File

@ -1,6 +1,6 @@
using StringDistances
srand(2)
x = map(Base.randstring, rand(5:25,500_000))
y = map(Base.randstring, rand(5:25,500_000))
function f(t, x, y)

0
src/StringDistances.jl Normal file → Executable file
View File

0
src/compare.jl Normal file → Executable file
View File

0
src/distances/RatcliffObershelp.jl Normal file → Executable file
View File

0
src/distances/edit.jl Normal file → Executable file
View File

2
src/distances/qgram.jl Normal file → Executable file
View File

@ -117,7 +117,7 @@ abstract type AbstractQGram <: SemiMetric end
function evaluate(dist::AbstractQGram, s1::AbstractString, s2::AbstractString)
evaluate(dist,
CountIteratorDictionary(QGramIterator(s1, length(s1), dist.q),
CountIteratorBinary(QGramIterator(s1, length(s1), dist.q),
QGramIterator(s2, length(s2), dist.q)))
end

0
src/utils.jl Normal file → Executable file
View File