From 33836724b40ed565aab488f6ee9734951ccf2d34 Mon Sep 17 00:00:00 2001 From: ChristofKaufmann Date: Tue, 16 Jul 2024 10:41:44 +0200 Subject: [PATCH] Fix spelling and add missing import --- README.md | 2 +- textdistance/algorithms/token_based.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e95fbff..92801fe 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Features: | Algorithm | Class | Functions | |-------------------------------------------------------------------------------------------|----------------------|------------------------| | [Hamming](https://en.wikipedia.org/wiki/Hamming_distance) | `Hamming` | `hamming` | -| [MLIPNS](http://www.sial.iias.spb.su/files/386-386-1-PB.pdf) | `Mlipns` | `mlipns` | +| [MLIPNS](http://www.sial.iias.spb.su/files/386-386-1-PB.pdf) | `MLIPNS` | `mlipns` | | [Levenshtein](https://en.wikipedia.org/wiki/Levenshtein_distance) | `Levenshtein` | `levenshtein` | | [Damerau-Levenshtein](https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance) | `DamerauLevenshtein` | `damerau_levenshtein` | | [Jaro-Winkler](https://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance) | `JaroWinkler` | `jaro_winkler`, `jaro` | diff --git a/textdistance/algorithms/token_based.py b/textdistance/algorithms/token_based.py index 3dd8c07..d499b84 100644 --- a/textdistance/algorithms/token_based.py +++ b/textdistance/algorithms/token_based.py @@ -15,7 +15,7 @@ 'Jaccard', 'Sorensen', 'Tversky', 'Overlap', 'Cosine', 'Tanimoto', 'MongeElkan', 'Bag', - 'jaccard', 'sorensen', 'tversky', 'sorensen_dice', + 'jaccard', 'sorensen', 'tversky', 'sorensen_dice', 'dice', 'overlap', 'cosine', 'tanimoto', 'monge_elkan', 'bag', ]