Skip to content
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

expose text, text.{CountVectorizer,HashingVectorizer,Tfidf{Transformer,Vectorizer}} from feature_extraction's public api #5028

Merged
merged 2 commits into from
Dec 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion python/cuml/feature_extraction/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2020, NVIDIA CORPORATION.
# Copyright (c) 2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,3 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from . import text


__all__ = [
"text"
]
10 changes: 9 additions & 1 deletion python/cuml/feature_extraction/text.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020, NVIDIA CORPORATION.
# Copyright (c) 2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -22,3 +22,11 @@
from cuml.feature_extraction._tfidf_vectorizer import TfidfVectorizer # noqa # pylint: disable=unused-import
from cuml.feature_extraction._vectorizers import CountVectorizer # noqa # pylint: disable=unused-import
from cuml.feature_extraction._vectorizers import HashingVectorizer # noqa # pylint: disable=unused-import


__all__ = [
"CountVectorizer",
"HashingVectorizer",
"TfidfTransformer",
"TfidfVectorizer"
]