DOC Clarify use_idf in TfidfTransformer/TfidfVectorizer docstrings
@@ -1504,7 +1504,7 @@ class TfidfTransformer(_OneToOneFeatureMixin, TransformerMixin, BaseEstimator):
See :func:`preprocessing.normalize`.
use_idf : bool, default=True
- Enable inverse-document-frequency reweighting.
+ Enable inverse-document-frequency reweighting. If False, idf(t) = 1.
smooth_idf : bool, default=True
Smooth idf weights by adding one to document frequencies, as if an
@@ -1842,7 +1842,7 @@ class TfidfVectorizer(CountVectorizer):
See :func:`preprocessing.normalize`.
use_idf : bool, default=True
- Enable inverse-document-frequency reweighting.
+ Enable inverse-document-frequency reweighting. If False, idf(t) = 1.
smooth_idf : bool, default=True
Smooth idf weights by adding one to document frequencies, as if an
