Troubleshooting#
I installed python-Levenshtein but auto does not use it#
This is intentional.
The external Levenshtein package is GPL-2.0-or-later and is explicit-only
in this facade:
from scikitplot.levenshtein import distance
distance("kitten", "sitting", backend="levenshtein")
A warning appears during a large rank#
One rank() call emits at most one warning for an unavailable requested
backend and at most one per backend that fails at runtime; each match still
names the backend that computed it. Repeated warnings across many rank()
calls mean the backend is unavailable or failing in every call: pass a backend
that available_backends reports as available. (Before LV-002 was
resolved, one call could warn once per choice.)
My strings look the same but distance is non-zero#
Check Unicode normalization, invisible characters, case and whitespace. The facade intentionally compares exactly what it receives.
Corpus returns fewer than top_k hits#
If the scorer has score_cutoff configured, candidates below the threshold
are removed. top_k is a maximum, not a minimum.