StringDistances.jl/src/StringDistances.jl

50 lines
975 B
Julia
Raw Normal View History

2015-10-22 18:12:44 +02:00
__precompile__(true)
module StringDistances
##############################################################################
##
## Export
##
##############################################################################
2015-11-10 15:47:12 +01:00
import Base: eltype, length, start, done, next, ==, hash, isless, convert, show, endof
2015-10-25 22:26:17 +01:00
import Distances: evaluate, Hamming, hamming, PreMetric, SemiMetric
2017-07-01 10:13:43 +02:00
import IterTools: chain
2015-11-04 18:40:30 +01:00
export
evaluate,
compare,
Hamming,
Levenshtein,
DamerauLevenshtein,
Jaro,
QGram,
Cosine,
Jaccard,
2015-11-05 16:51:32 +01:00
SorensenDice,
Overlap,
2015-11-04 18:40:30 +01:00
longest_common_substring,
matching_blocks,
RatcliffObershelp,
Winkler,
Partial,
TokenSort,
2015-11-06 16:47:15 +01:00
TokenSet,
2015-11-10 15:47:12 +01:00
TokenMax,
graphemeiterator
2015-11-06 20:43:04 +01:00
##############################################################################
##
## include
##
##############################################################################
2017-08-05 20:45:19 +02:00
include("utils.jl")
2015-11-04 18:40:30 +01:00
include("distances/edit.jl")
include("distances/qgram.jl")
include("distances/RatcliffObershelp.jl")
2017-08-05 20:45:19 +02:00
include("compare.jl")
2015-11-06 03:03:45 +01:00
end