-
Notifications
You must be signed in to change notification settings - Fork 100
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
Stopwords do not load properly #382
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The stopwords do not load in MedCAT - we've been passing in a set of stopwords from the MedCAT config and this set of stopwords is entirely ignored as MedCAT still uses the spacy defaults. This is because to load a set of stopwords in spacy, you need to initialise this in the
Language.Defaults
class BEFORE the spacy model is loaded (see explosion/spaCy#10942)I believe all you need to do is change the order of initialisation in
medcat/pipe.py
to:The text was updated successfully, but these errors were encountered: