Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislit committed Feb 8, 2019
1 parent 0e49967 commit 509d563
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion abydos/distance/_meta_levenshtein.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ def _dist(s_tok, t_tok):
d_mat[i + 1, j + 1] = min(
d_mat[i + 1, j] + 1, # ins
d_mat[i, j + 1] + 1, # del
d_mat[i, j] + _dist(src_ordered[i], tar_ordered[j]), # sub/==
d_mat[i, j]
+ _dist(src_ordered[i], tar_ordered[j]), # sub/==
)

return d_mat[len(src_ordered), len(tar_ordered)]
Expand Down

0 comments on commit 509d563

Please sign in to comment.