-
Notifications
You must be signed in to change notification settings - Fork 95
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
__init__() got an unexpected keyword argument 'spacy_component' #65
Comments
I think I'm getting a similar error to this. It tells me there is "no such module" as |
@eunsuk-c I got this error too. Apparently Without looking through all of the diff output below, the After updating
My Environment
|
@jimhavrilla I had this error as well. For some reasons, when I installed this library with My Environment
|
Yes, this seems to be correct. I also got some weird bug during install
where if I tried to run pip install again it kept trying to reinstall spaCy
3.0. Possibly related to what you said?
Jim Havrilla
…On Fri, Feb 26, 2021, 8:31 AM Noon Pokaratsiri Goldstein < ***@***.***> wrote:
I think I'm getting a similar error to this. It tells me there is "no such
module" as spacy_component.
@jimhavrilla <https://github.com/jimhavrilla> I had this error as well.
For some reasons, when I installed this library with pip install quickumls,
the spacy_component.py did *not* get installed in my environment site
packages. Perhaps, that's also what happened with your install?
I had to manually put spacy_component.py where the rest of the module
files are for this to work.
*My Environment*
- OS: Mac OS X Big Sur
- QuickUMLS version 1.4 (I installed this Feb 2021)
- UMLS version: 2019AB
- Spacy 3.0 (Note that there are other issues with SpacCy 3.0 and this
library)
- Python 3.7
- anaconda environment
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSDYBGTT6RLNDBZUHZBXWLTA6PCNANCNFSM4WFCNTBA>
.
|
I had to overwrite |
can some push this to PYPI? |
@DSLituiev As a part of medspacy, we have started our own fork of QuickUMLS. In this fork, we support spacy v3.x and we have addressed this issue with version 2.5 of Please note if you decide to consider any of the options below which address this, please note that as a medspacy team, we have elected to no longer support That repo is here: It's also now pip-installable here: |
Describe the bug
When I run the following code:
from quickumls.spacy_component import SpacyQuickUMLS
nlp = spacy.load('en_core_web_sm')
quickumls_component = SpacyQuickUMLS(nlp, '/home/silverock/umls/quickUMLS')
nlp.add_pipe(quickumls_component)
I got this message:
TypeError Traceback (most recent call last)
in
2
3 nlp = spacy.load('en_core_web_sm')
----> 4 quickumls_component = SpacyQuickUMLS(nlp, '/home/silverock/umls/quickUMLS')
5 nlp.add_pipe(quickumls_component)
~/anaconda3/lib/python3.8/site-packages/quickumls/spacy_component.py in init(self, nlp, quickumls_fp, best_match, ignore_syntax, **kwargs)
23 """
24
---> 25 self.quickumls = QuickUMLS(quickumls_fp,
26 # By default, the QuickUMLS objects creates its own internal spacy pipeline but this is not needed
27 # when we're using it as a component in a pipeline
TypeError: init() got an unexpected keyword argument 'spacy_component'
Could you solve this issue?
**My Environment **
The text was updated successfully, but these errors were encountered: