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 5fa4d63 commit 044d518Copy full SHA for 044d518
sklearn/feature_extraction/text.py
@@ -89,7 +89,7 @@ def _check_stop_list(stop):
89
elif isinstance(stop, six.string_types):
90
raise ValueError("not a built-in stop list: %s" % stop)
91
else: # assume it's a collection
92
- return stop
+ return frozenset(stop)
93
94
95
class VectorizerMixin(object):
0 commit comments