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

Python : Implementing Multi-word Replacement for Swear Words in Datasets #29

Open
amirshnll opened this issue Aug 31, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@amirshnll
Copy link
Owner

If we possess words within the dataset that contain spaces, intended for the purpose of replacing recognized swear words while avoiding the recognition of the actual swear words, the process can be illustrated through the following example:

filter_words function

Dataset = ["test world"]

Text = "this is a test world"

Current Result: this is a test world

Desired Result: this is a ***

@amirshnll amirshnll added the enhancement New feature or request label Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant