score
parent
b52d358b47
commit
fb619ed4c5
|
@ -95,7 +95,8 @@ The package includes distance "modifiers", that can be applied to any distance.
|
|||
```
|
||||
## Evaluate vs Compare
|
||||
The function `evaluate` returns the litteral distance between two strings, with a value of 0 being completely similar.
|
||||
The function `compare` is the opposite of `evaluate`: a value of 0 means completely different and a value of 1 means completely similar.
|
||||
|
||||
In contrast, the function `compare` returns a similarity score: a value of 0 means completely different and a value of 1 means completely similar.
|
||||
|
||||
```julia
|
||||
evaluate(Levenshtein(), "New York", "New York")
|
||||
|
|
Loading…
Reference in New Issue