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

Remove strip_punctuation2 alias of strip_punctuation #2965

Merged
merged 7 commits into from
Jun 29, 2021

Conversation

sciatro
Copy link
Contributor

@sciatro sciatro commented Sep 30, 2020

Issue #2961 noted that parsing.preprocessing.strip_punctuation had an alias parsing.preprocessing.strip_punctuation2 which made the docs a bit less clear and did not get much use. Discussion of the issue concluded:

Can you open a PR to get rid of strip_punctuation2?

This PR does so. Fixes #2961.

Re Issue 2961, remove strip_punctuation alias strip_punctuation2 which makes a mess of docs
Re Issue 2961, remove use of strip_punctuation2 function which was an alias of strip_punctuation
@mpenkov mpenkov added this to Triage in PR triage 2021-06 Jun 22, 2021
@mpenkov mpenkov moved this from Triage to Ready to merge in PR triage 2021-06 Jun 22, 2021
Copy link
Collaborator

@mpenkov mpenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. While reviewing, I also cleaned up the imports a little bit to make things more readable.

Thank you for your contribution!

@mpenkov mpenkov merged commit 2f23566 into piskvorky:develop Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
PR triage 2021-06
Ready to merge
Development

Successfully merging this pull request may close these issues.

Documentation of strip_punctuation vs strip_punctuation2 in gensim.parsing.preprocessing
3 participants