DOC improve stop_words description w.r.t. max_df range in CountVectorizer
@@ -996,9 +996,9 @@ class CountVectorizer(_VectorizerMixin, BaseEstimator):
will be removed from the resulting tokens.
Only applies if ``analyzer == 'word'``.
- If None, no stop words will be used. max_df can be set to a value
- in the range [0.7, 1.0) to automatically detect and filter stop
- words based on intra corpus document frequency of terms.
+ If None, no stop words will be used. In this case, setting `max_df`
+ to a higher value, such as in the range (0.7, 1.0), can automatically detect
+ and filter stop words based on intra corpus document frequency of terms.
token_pattern : str or None, default=r"(?u)\\b\\w\\w+\\b"
Regular expression denoting what constitutes a "token", only used
@@ -1833,9 +1833,9 @@ class TfidfVectorizer(CountVectorizer):
will be removed from the resulting tokens.
Only applies if ``analyzer == 'word'``.
- If None, no stop words will be used. max_df can be set to a value
- in the range [0.7, 1.0) to automatically detect and filter stop
- words based on intra corpus document frequency of terms.
+ If None, no stop words will be used. In this case, setting `max_df`
+ to a higher value, such as in the range (0.7, 1.0), can automatically detect
+ and filter stop words based on intra corpus document frequency of terms.
token_pattern : str, default=r"(?u)\\b\\w\\w+\\b"
Regular expression denoting what constitutes a "token", only used
