CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-python-levenshtein

Python compatibility wrapper for computing string edit distances and similarities using fast Levenshtein algorithms.

88

1.37x
Overview
Eval results
Files

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how well the engineer uses the Levenshtein package to implement a consensus string finder. The focus is on proper usage of the set-based median computation functionality provided by the package.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Imports Levenshtein package",
      "description": "The solution imports the Levenshtein package (e.g., 'import Levenshtein' or 'from Levenshtein import setmedian')",
      "max_score": 15
    },
    {
      "name": "Uses setmedian function",
      "description": "The solution correctly uses the Levenshtein.setmedian() function to compute the consensus string from the input collection",
      "max_score": 50
    },
    {
      "name": "Handles empty input",
      "description": "The solution properly handles empty list input, returning an empty string or appropriate value without crashing",
      "max_score": 10
    },
    {
      "name": "Handles single string",
      "description": "The solution correctly handles input with a single string, returning that string as the consensus",
      "max_score": 10
    },
    {
      "name": "Correct function signature",
      "description": "The function accepts a list/collection of strings as input and returns a single string as specified in the API",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-python-levenshtein

tile.json