Skip to content

Commit f8088f8

Browse files
committed
FIX Handle case where stop is None
1 parent 044d518 commit f8088f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sklearn/feature_extraction/text.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ def _check_stop_list(stop):
8888
return ENGLISH_STOP_WORDS
8989
elif isinstance(stop, six.string_types):
9090
raise ValueError("not a built-in stop list: %s" % stop)
91+
elif stop is None:
92+
return None
9193
else: # assume it's a collection
9294
return frozenset(stop)
9395

0 commit comments

Comments
 (0)