Update README.md

compathelper/new_version/2020-05-20-12-03-08-092-188304956
matthieugomez 2020-03-03 06:52:25 -05:00
parent 2c6786d178
commit cd0917e7df
1 changed files with 6 additions and 0 deletions

View File

@ -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.