bibraeval.Levenshtein

class bibraeval.Levenshtein(threshold=0.8, list_comparison='all-of')

Bases: FieldMetric

Score scalars by normalized Levenshtein similarity and align lists.

Scalar scores use Levenshtein.ratio and are not thresholded. For list values, the threshold controls which fuzzy pairs can be aligned; exact matches are preferred, and each value is used at most once.

Parameters:
  • threshold (float)

  • list_comparison (Literal['all-of', 'any-of'])