-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove strip_punctuation2 alias of strip_punctuation (#2965)
* Remove strip_punctuation2 Re Issue 2961 * Remove strip_punctuation2 alias Re Issue 2961, remove strip_punctuation alias strip_punctuation2 which makes a mess of docs * Move strip_punctuation2 to strip_punctuation Re Issue 2961, remove use of strip_punctuation2 function which was an alias of strip_punctuation * reorganize imports * make flake8 happy * Update CHANGELOG.md Co-authored-by: Michael Penkov <misha.penkov@gmail.com> Co-authored-by: Michael Penkov <m@penkov.dev>
- Loading branch information
1 parent
dab0369
commit 2f23566
Showing
4 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
"""This package contains functions to preprocess raw text""" | ||
|
||
from .porter import PorterStemmer # noqa:F401 | ||
from .preprocessing import (remove_stopwords, strip_punctuation, strip_punctuation2, # noqa:F401 | ||
strip_tags, strip_short, strip_numeric, | ||
strip_non_alphanum, strip_multiple_whitespaces, | ||
split_alphanum, stem_text, preprocess_string, | ||
preprocess_documents, read_file, read_files) | ||
from .preprocessing import ( # noqa:F401 | ||
preprocess_documents, | ||
preprocess_string, | ||
read_file, | ||
read_files, | ||
remove_stopwords, | ||
split_alphanum, | ||
stem_text, | ||
strip_multiple_whitespaces, | ||
strip_non_alphanum, | ||
strip_numeric, | ||
strip_punctuation, | ||
strip_short, | ||
strip_tags, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters