Skip to content

Commit c73e8d2

Browse files
committed
Better error message for LexRank if LSA is missing
1 parent 8bba302 commit c73e8d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sumy/summarizers/lex_rank.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __call__(self, document, sentences_count):
4646

4747
def _ensure_dependecies_installed(self):
4848
if numpy is None:
49-
raise ValueError("LSA summarizer requires NumPy. Please, install them by command 'pip install numpy'.")
49+
raise ValueError("LexRank summarizer requires NumPy. Please, install it by command 'pip install numpy'.")
5050

5151
def _to_words_set(self, sentence):
5252
words = map(self.normalize_word, sentence.words)

0 commit comments

Comments
 (0)