rank#
- scikitplot.levenshtein.rank(query, choices, *, key=None, limit=None, score_cutoff=0.0, backend='auto', strict=False)[source]#
Rank choices from most to least similar to query.
score_cutoffis backend-neutral normalized similarity in[0, 1]. It is applied after exact distance computation so every backend preserves identical ranking semantics and provenance.The backend is resolved once per call. A backend that fails at runtime warns once and is replaced, for the rest of the call, by the next available one of
internal,rapidfuzz,python; each match records the backend that computed it. An unknown or (withstrict=True) unavailable backend raises even whenchoicesis empty.