levenshtein

psi4.driver.p4util.levenshtein(seq1, seq2)[source]

Compute the Levenshtein distance between two strings.

Parameters:
  • seq1 (str) – First string.

  • seq2 (str) – Second string.

Return type:

int