-
-
Notifications
You must be signed in to change notification settings - Fork 26k
test cases for feature_extraction.text #1660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
# error with bad analyzer | ||
vm.analyzer = 'invalid_analyzer' | ||
assert_raises(ValueError, vm.build_analyzer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather have those tests for the CountVectorizer
/ HashingVectorizer
classes instead as their are less subject to refactoring (public API) while VectorizerMixin
is more private API hence more subject to future change.
Thanks. I will merge this as soon as you address the previous comment. If you don't have time / will to address it, I can also merge anyway as this is already a net benefit. |
Nah, no problem - I should be able to get to it later today. |
That should be it. I moved the tests for _check_stop_lists to run from a CountVectorizer as well. |
test cases for feature_extraction.text
Thanks! |
Extends test coverage in feature_extraction.text and fixes a few typos in the module's documentation.