diff --git a/dedupe/api.py b/dedupe/api.py index f89012cb..e8e36abe 100644 --- a/dedupe/api.py +++ b/dedupe/api.py @@ -89,7 +89,7 @@ def __init__( def fingerprinter(self) -> blocking.Fingerprinter: if self._fingerprinter is None: raise ValueError( - "the record fingerprinter is not intialized, " + "the record fingerprinter is not initialized, " "please run the train method" ) diff --git a/dedupe/clustering.py b/dedupe/clustering.py index f6e148ce..a1b7b423 100644 --- a/dedupe/clustering.py +++ b/dedupe/clustering.py @@ -201,7 +201,7 @@ def condensedDistance( N = len(candidate_set) - # alternate form thanks to wolfram alpa + # alternate form thanks to Wolfram Alpha index = row * (2 * N - row - 3) // 2 + col - 1 condensed_distances = numpy.ones(N * (N - 1) // 2, "f4") diff --git a/tests/test_predicates.py b/tests/test_predicates.py index 4df2c040..2f9b6c05 100644 --- a/tests/test_predicates.py +++ b/tests/test_predicates.py @@ -66,7 +66,7 @@ def test_precise_latlong(self): assert block_val == set() -class TestAlpaNumeric(unittest.TestCase): +class TestAlphaNumeric(unittest.TestCase): def test_alphanumeric(self): assert predicates.alphaNumericPredicate("a1") == {"a1"} assert predicates.alphaNumericPredicate("1a") == {"1a"}