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

Error: undefined constant StopWords #3

Open
kukula opened this issue Feb 14, 2021 · 2 comments
Open

Error: undefined constant StopWords #3

kukula opened this issue Feb 14, 2021 · 2 comments

Comments

@kukula
Copy link

kukula commented Feb 14, 2021

Thank you for your great work!
I've tried to use your library and got an error:

In lib/cadmium_tfidf/src/cadmium/tfidf/tfidf.cr:5:13

 5 | include StopWords
             ^
Error: undefined constant StopWords
@watzon
Copy link
Member

watzon commented Feb 14, 2021

Oops. Should be an easy fix, but for now you should be able to fix it by requiring cadmium_util before you require cadmium_tfidf. Be sure to add cadmiumcr/cadmium_util as a dependency in your shard.yml first.
https://github.com/cadmiumcr/utilities

@kukula
Copy link
Author

kukula commented Feb 14, 2021

thanks mate!

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