Skip to content

Inconsistent documentation on return format in CountVectorizer and TfidfVectorizer fit_transform method #16776

@bmaingret

Description

@bmaingret

Hi,

The documentation for fit_transform method of the Count_Vectorizer class have an inconsistency I think:

Learn the vocabulary dictionary and return term-document matrix.

versus

Returns
-------
X : array, [n_samples, n_features]
Document-term matrix.

Not a major issue but can be confusing.

It should be

Learn the vocabulary dictionary and return document-term matrix.

to be consistent and in line with code.

I can correct it if you wish.

"""Learn the vocabulary dictionary and return term-document matrix.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions