torchoutil
torchoutil.pyoutil.difflib module
-
find_closest_in_list(x: str, lst: ~typing.Iterable[str], sim_fn: ~typing.Callable[[str, str], float] = <function sequence_matcher_ratio>, higher_is_closer: bool = True) → str | None[source]
-
sequence_matcher_ratio(
- a: str,
- b: str,
) → float[source]