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

KeyError: 'es_clinical' #53

Closed
shuxianpan opened this issue May 2, 2023 · 2 comments
Closed

KeyError: 'es_clinical' #53

shuxianpan opened this issue May 2, 2023 · 2 comments

Comments

@shuxianpan
Copy link

shuxianpan commented May 2, 2023

I tested the pipeline for Spanish text as following

ts = termset("es_clinical")

nlp = spacy.load("es_core_news_sm")

nlp.add_pipe(
    "negex",
    config={
        "neg_termset":ts.get_patterns()
    }
)

and got the error

File "/root/negex_spacy/negex.py", line 5, in <module>
    ts = termset("es_clinical")
File "/usr/local/lib/python3.10/dist-packages/negspacy/termsets.py", line 212, in __init__
    self.terms = LANGUAGES[termset_lang]
KeyError: 'es_clinical'

Update: try to install via cloned repository and works. Seems that the one installed via pip is not the lastest version.

@jenojp
Copy link
Owner

jenojp commented May 3, 2023

Thank you for testing the install via GitHub repository as well. I am rolling together a couple of changes into one update and plan to finish by mid May. Then the pip install version will work as well.

@jenojp
Copy link
Owner

jenojp commented May 20, 2023

Version 1.0.4 available at pypi

thanks!

@jenojp jenojp closed this as completed May 20, 2023
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