Skip to content

Commit 3dc3212

Browse files
committed
fix bug when setting stop_words to None
Signed-off-by: Tim Schopf <[email protected]>
1 parent 3b1316c commit 3dc3212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keyphrase_vectorizers/keyphrase_vectorizer_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def _get_pos_keyphrases(self, document_list: List[str], stop_words: Union[str, L
348348
)
349349

350350

351-
stop_words_list = []
351+
stop_words_list = set()
352352
if isinstance(stop_words, str):
353353
try:
354354
stop_words_list = set(nltk.corpus.stopwords.words(stop_words))

0 commit comments

Comments
 (0)