Skip to content

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

@lucasalisboa

Description

@lucasalisboa

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions