-
Notifications
You must be signed in to change notification settings - Fork 548
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
Adding docs for .get_feature_names()
inside TfidfVectorizer
#4226
Adding docs for .get_feature_names()
inside TfidfVectorizer
#4226
Conversation
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.
Just one change needed for correct copyright
Co-authored-by: Dante Gama Dessavre <[email protected]>
@@ -256,3 +256,13 @@ def transform(self, raw_documents): | |||
""" | |||
X = super().transform(raw_documents) | |||
return self._tfidf.transform(X, copy=False) | |||
|
|||
def get_feature_names(self): |
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.
Just after approving remembered that I forgot to ask, could you add a very simple pytest so that this method is covered?
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.
Sure
rerun tests |
2 similar comments
rerun tests |
rerun tests |
Codecov Report
@@ Coverage Diff @@
## branch-21.10 #4226 +/- ##
================================================
+ Coverage 86.07% 86.09% +0.01%
================================================
Files 231 231
Lines 18649 18690 +41
================================================
+ Hits 16052 16091 +39
- Misses 2597 2599 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@gpucibot merge |
…dsai#4226) This PR resolves issue rapidsai#4219 by adding docs for `.get_feature_names()` in the `TfidfVectorizer` class. As mentioned in the linked issue, the method already exists in `CountVectorizer` and `TfidfVectorizer` inherits from that class, hence the functionality is present but not documented. Authors: - Mayank Anand (https://github.com/mayankanand007) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) URL: rapidsai#4226
This PR resolves issue #4219 by adding docs for
.get_feature_names()
in theTfidfVectorizer
class.As mentioned in the linked issue, the method already exists in
CountVectorizer
andTfidfVectorizer
inherits from that class, hence the functionality is present but not documented.