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

exclude parameter not working properly #6

Open
WolfBanner opened this issue Dec 9, 2024 · 0 comments
Open

exclude parameter not working properly #6

WolfBanner opened this issue Dec 9, 2024 · 0 comments

Comments

@WolfBanner
Copy link

from spanlp.palabrota import Palabrota

PALABROTAS = [
    "cojone",
]
text = "Solo es posible descargar en la calidad máxima del video"
for t in text.split(" "):
            palabrota = Palabrota(include=PALABROTAS, exclude=['descargar'])
            if palabrota.contains_palabrota(str(t)):
                print(str(t))

Con este codigo en la version 1.1.0 el parametro exclude no funciona, cuando llega a la palabra descargar, entra al if a pesar de que esta en exclude

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