Skip to content

Commit

Permalink
correction of wording
Browse files Browse the repository at this point in the history
  • Loading branch information
gw00207 committed Sep 1, 2021
1 parent 0ba8ffa commit 77ed699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions string_grouper/string_grouper.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class StringGrouperNotFitException(Exception):


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


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

master_matrix, duplicate_matrix = self._get_tf_idf_matrices()

Expand Down

0 comments on commit 77ed699

Please sign in to comment.