We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 044d518 commit f8088f8Copy full SHA for f8088f8
sklearn/feature_extraction/text.py
@@ -88,6 +88,8 @@ def _check_stop_list(stop):
88
return ENGLISH_STOP_WORDS
89
elif isinstance(stop, six.string_types):
90
raise ValueError("not a built-in stop list: %s" % stop)
91
+ elif stop is None:
92
+ return None
93
else: # assume it's a collection
94
return frozenset(stop)
95
0 commit comments