Skip to content

Commit

Permalink
Bugfix in levenshtein algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 committed Nov 9, 2016
1 parent d24466d commit c37f82f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions recordlinkage/algorithms/string.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import division

import pandas
import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion recordlinkage/comparing.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def _string_internal(s1, s2, method, threshold=None, *args, **kwargs):
elif method == 'levenshtein':
str_sim_alg = levenshtein_similarity

elif method in ['dameraulevenshtein', 'dameraulevenshtein']:
elif method in ['dameraulevenshtein', 'damerau_levenshtein']:
str_sim_alg = damerau_levenshtein_similarity

elif method == 'q_gram' or method == 'qgram':
Expand Down

0 comments on commit c37f82f

Please sign in to comment.