Update README.md
parent
2c6786d178
commit
cd0917e7df
|
@ -42,6 +42,12 @@ evaluate(Levenshtein(), "martha", "marhta")
|
|||
Levenshtein()("martha", "marhta")
|
||||
```
|
||||
|
||||
You can also compute the distances between two iterators for which there exists a `length` method:
|
||||
```julia
|
||||
evaluate(Levenshtein(), [1, 5, 6], [1, 6, 5])
|
||||
2
|
||||
```
|
||||
|
||||
### Compare
|
||||
The function `compare` is defined as 1 minus the normalized distance between two strings. It always returns a `Float64` between 0 and 1: a value of 0 means completely different and a value of 1 means completely similar.
|
||||
|
||||
|
|
Loading…
Reference in New Issue