2015-10-22 18:38:04 +02:00
|
|
|
[![Build Status](https://travis-ci.org/matthieugomez/StringDistances.jl.svg?branch=master)](https://travis-ci.org/matthieugomez/StringDistances.jl)
|
2015-10-23 03:03:57 +02:00
|
|
|
[![Coverage Status](https://coveralls.io/repos/matthieugomez/StringDistances.jl/badge.svg?branch=master)](https://coveralls.io/r/matthieugomez/StringDistances.jl?branch=master)
|
2015-10-22 18:38:04 +02:00
|
|
|
|
|
|
|
|
2015-10-22 18:10:59 +02:00
|
|
|
# StringDistances
|
2015-10-22 18:38:04 +02:00
|
|
|
|
2015-10-22 18:28:09 +02:00
|
|
|
- [x] Hamming Distance
|
2015-10-25 02:35:40 +02:00
|
|
|
- [x] Jaro-Winkler Distance
|
2015-10-23 03:03:57 +02:00
|
|
|
- [x] Levenshtein Distance
|
|
|
|
- [x] Damerau-Levenshtein Distance
|
2015-10-24 18:45:24 +02:00
|
|
|
- [x] Qgram Distance
|
|
|
|
- [x] Cosine Distance
|
|
|
|
- [x] Jaccard Distance
|
2015-10-23 16:12:51 +02:00
|
|
|
|
2015-10-24 23:21:36 +02:00
|
|
|
Should work with ASCII, UTF-8 and Unicode
|
2015-10-22 18:23:10 +02:00
|
|
|
|
2015-10-24 21:10:28 +02:00
|
|
|
# Syntax
|
2015-10-24 21:18:35 +02:00
|
|
|
There are two possible syntaxes for any distance:
|
2015-10-22 18:27:52 +02:00
|
|
|
```julia
|
|
|
|
using StringDistances
|
2015-10-24 21:10:28 +02:00
|
|
|
evaluate(Jaccard(2), "martha", "marhta")
|
|
|
|
jaccard("martha", "marhta"; q = 2)
|
2015-10-22 18:27:52 +02:00
|
|
|
```
|
|
|
|
|