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

how to handle 'ValueError: empty vocabulary; perhaps the documents only contain stop words' in group_similar_strings #66

Open
gw00207 opened this issue Sep 1, 2021 · 2 comments

Comments

@gw00207
Copy link

gw00207 commented Sep 1, 2021

currently I am having to use a try/except clause when using group_similar_strings in case all of the strings only contain stopwords. Is it possible to handle this case differently, e.g. just return all strings ungrouped? or perhaps just a more descriptive error so that I can except and handle OnlyStopwordsError or similar instead of any ValueError. great package, many thanks.

@ParticularMiner
Copy link
Contributor

That makes sense, @gw00207
and is a simple enough addition to make.
Can you create a pull request for this?

@gw00207
Copy link
Author

gw00207 commented Sep 1, 2021

please see #67

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

2 participants