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

Spacy Strip function not called #97

Open
CT-P opened this issue Oct 13, 2023 · 0 comments
Open

Spacy Strip function not called #97

CT-P opened this issue Oct 13, 2023 · 0 comments

Comments

@CT-P
Copy link

CT-P commented Oct 13, 2023

s = [t.strip() for t in s if t.strip() not in self.stop_words]

replace by: s=[cleaned_text for token in s if (cleaned_text := token.text.strip()) not in self.stop_words]

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