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

Prebuild snomed model #233

Closed
analyticalpicasso opened this issue Apr 25, 2022 · 2 comments
Closed

Prebuild snomed model #233

analyticalpicasso opened this issue Apr 25, 2022 · 2 comments

Comments

@analyticalpicasso
Copy link

Hello getting below error while using prebuid models. How to resolve this?

ConfigValidationError:

Config validation error

ner -> incorrect_spans_key extra fields not permitted

{'nlp': <spacy.lang.en.English object at 0x00000138780A7670>, 'name': 'ner', 'incorrect_spans_key': None, 'model': {'@architectures': 'spacy.TransitionBasedParser.v2', 'state_type': 'ner', 'extra_state_tokens': False, 'hidden_width': 64, 'maxout_pieces': 2, 'use_upper': True, 'nO': None, 'tok2vec': {'@architectures': 'spacy.Tok2Vec.v2', 'embed': {'@architectures': 'spacy.MultiHashEmbed.v2', 'width': 96, 'attrs': ['NORM', 'PREFIX', 'SUFFIX', 'SHAPE'], 'rows': [5000, 2500, 2500, 2500], 'include_static_vectors': True}, 'encode': {'@architectures': 'spacy.MaxoutWindowEncoder.v2', 'width': 96, 'depth': 4, 'window_size': 1, 'maxout_pieces': 3}}}, 'moves': None, 'update_with_oracle_cut_size': 100, '@factories': 'n

@w-is-h
Copy link
Collaborator

w-is-h commented Apr 25, 2022

Hi @analyticalpicasso this usually happens when your version of spacy does not match the requirements, please check is 'spacy<3.1.4,>=3.1.0', and if not install the appropriate version.

@analyticalpicasso
Copy link
Author

Worked. Thanks

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