DOC Improve wording in text vectorizers docstring
@@ -451,8 +451,8 @@ class HashingVectorizer(BaseEstimator, VectorizerMixin, TransformerMixin):
If 'file', the sequence items must have a 'read' method (file-like
object) that is called to fetch the bytes in memory.
- Otherwise the input is expected to be the sequence strings or
- bytes items are expected to be analyzed directly.
+ Otherwise the input is expected to be a sequence of items that
+ can be of type string or byte.
encoding : string, default='utf-8'
If bytes or files are given to analyze, this encoding is used to
@@ -707,8 +707,8 @@ class CountVectorizer(BaseEstimator, VectorizerMixin):
If 'file', the sequence items must have a 'read' method (file-like
object) that is called to fetch the bytes in memory.
- Otherwise the input is expected to be the sequence strings or
- bytes items are expected to be analyzed directly.
+ Otherwise the input is expected to be a sequence of items that
+ can be of type string or byte.
encoding : string, 'utf-8' by default.
If bytes or files are given to analyze, this encoding is used to
@@ -1360,8 +1360,8 @@ class TfidfVectorizer(CountVectorizer):
If 'file', the sequence items must have a 'read' method (file-like
object) that is called to fetch the bytes in memory.
- Otherwise the input is expected to be the sequence strings or
- bytes items are expected to be analyzed directly.
+ Otherwise the input is expected to be a sequence of items that
+ can be of type string or byte.
encoding : string, 'utf-8' by default.
If bytes or files are given to analyze, this encoding is used to
