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

ValueError: Cannot use a compiled regex as replacement pattern with regex=False #237

Open
lucasalisboa opened this issue Apr 24, 2024 · 0 comments

Comments

@lucasalisboa
Copy link

I'm doing a project, on Google Colab, where I use the following version:
!pip install "gensim==4.2.0" !pip install "texthero==1.0.5"
Until recently, I received the following warning:
FutureWarning: The default value of regex will change from True to False in a future version.
return input.str.replace(r"^\d+\s|\s\d+\s|\s\d+$", " ")

But the execution worked normally. Now, I'm getting the following error:
image
How should I proceed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant