parent
0d1f2e7e9f
commit
5d535e3e06
|
@ -1 +1 @@
|
|||
@time f(Jaccard(2), x, y)
|
||||
@time f(Cosine(2), x, y)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue