Skip to content

Commit 77ed699

Browse files
committed
correction of wording
1 parent 0ba8ffa commit 77ed699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

string_grouper/string_grouper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class StringGrouperNotFitException(Exception):
195195

196196

197197
class StringLengthException(Exception):
198-
"""Raised when vectoriser is fit on strings that are not of length greater than ngram size"""
198+
"""Raised when vectoriser is fit on strings that are not of length greater or equal to ngram size"""
199199
pass
200200

201201

@@ -268,7 +268,7 @@ def fit(self) -> 'StringGrouper':
268268
if not StringGrouper._strings_are_of_sufficient_length(self._master, self._config.ngram_size) or \
269269
(self._duplicates is not None
270270
and not StringGrouper._strings_are_of_sufficient_length(self._duplicates, self._config.ngram_size)):
271-
raise StringLengthException('Input string lengths are not all greater than n_gram length')
271+
raise StringLengthException('None of input string lengths are greater than or equal to n_gram length')
272272

273273
master_matrix, duplicate_matrix = self._get_tf_idf_matrices()
274274

0 commit comments

Comments
 (0)