File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ class StringGrouperNotFitException(Exception):
195
195
196
196
197
197
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"""
199
199
pass
200
200
201
201
@@ -268,7 +268,7 @@ def fit(self) -> 'StringGrouper':
268
268
if not StringGrouper ._strings_are_of_sufficient_length (self ._master , self ._config .ngram_size ) or \
269
269
(self ._duplicates is not None
270
270
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' )
272
272
273
273
master_matrix , duplicate_matrix = self ._get_tf_idf_matrices ()
274
274
You can’t perform that action at this time.
0 commit comments