Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CountVectorizer with custom analyzer ignores input argument #5482

Closed
@larsmans

Description

@larsmans

Example:

cv = CountVectorizer(analyzer=lambda x: x.split(), input='filename')
cv.fit(['hello world']).vocabulary_

Same for input="file". Not sure if this should be fixed or just documented; I don't like changing the behavior of the vectorizers yet again...

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugModerateAnything that requires some knowledge of conventions and best practices

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions