You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to run the Linker REST API service and I am getting following exception:
It is known issue with multi-threaded workers, is there is a fix for that?
**spacy_ann serve** /usr/src/automation/scripts/spacy-ann-linker/models/ann_linker
Your CPU supports instructions that this binary was not compiled to use: SSE3 SSE4.1 SSE4.2 AVX AVX2
For maximum performance, you can install NMSLIB from sources
pip install --no-binary :all: nmslib
Traceback (most recent call last):
File "/usr/local/bin/spacy_ann", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/spacy_ann/cli/__init__.py", line 24, in main
typer.run(commands[command])
File "/usr/local/lib/python3.6/dist-packages/typer/main.py", line 855, in run
app()
File "/usr/local/lib/python3.6/dist-packages/typer/main.py", line 214, in __call__
return get_command(self)(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/typer/main.py", line 497, in wrapper
return callback(**use_params) # type: ignore
File "/usr/local/lib/python3.6/dist-packages/spacy_ann/cli/serve.py", line 22, in serve
nlp = spacy.load(model)
File "/usr/local/lib/python3.6/dist-packages/spacy/__init__.py", line 30, in load
return util.load_model(name, **overrides)
File "/usr/local/lib/python3.6/dist-packages/spacy/util.py", line 172, in load_model
return load_model_from_path(Path(name), **overrides)
File "/usr/local/lib/python3.6/dist-packages/spacy/util.py", line 222, in load_model_from_path
return nlp.from_disk(model_path, exclude=disable)
File "/usr/local/lib/python3.6/dist-packages/spacy/language.py", line 974, in from_disk
util.from_disk(path, deserializers, exclude)
File "/usr/local/lib/python3.6/dist-packages/spacy/util.py", line 690, in from_disk
reader(path / key)
File "/usr/local/lib/python3.6/dist-packages/spacy/language.py", line 969, in <lambda>
p, exclude=["vocab"]
File "pipes.pyx", line 673, in spacy.pipeline.pipes.Tagger.from_disk
File "/usr/local/lib/python3.6/dist-packages/spacy/util.py", line 690, in from_disk
reader(path / key)
File "pipes.pyx", line 652, in spacy.pipeline.pipes.Tagger.from_disk.load_model
File "pipes.pyx", line 560, in spacy.pipeline.pipes.Tagger.Model
File "/usr/local/lib/python3.6/dist-packages/spacy/_ml.py", line 587, in build_tagger_model
pretrained_vectors=pretrained_vectors,
File "/usr/local/lib/python3.6/dist-packages/spacy/_ml.py", line 324, in Tok2Vec
return _legacy_tok2vec.Tok2Vec(width, embed_size, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/spacy/ml/_legacy_tok2vec.py", line 44, in Tok2Vec
glove = StaticVectors(pretrained_vectors, width, column=cols.index(ID))
File "/usr/local/lib/python3.6/dist-packages/thinc/neural/_classes/static_vectors.py", line 43, in __init__
vectors = self.get_vectors()
File "/usr/local/lib/python3.6/dist-packages/thinc/neural/_classes/static_vectors.py", line 55, in get_vectors
return get_vectors(self.ops, self.lang)
File "/usr/local/lib/python3.6/dist-packages/thinc/extra/load_nlp.py", line 26, in get_vectors
nlp = get_spacy(lang)
File "/usr/local/lib/python3.6/dist-packages/thinc/extra/load_nlp.py", line 14, in get_spacy
SPACY_MODELS[lang] = spacy.load(lang, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/spacy/__init__.py", line 30, in load
return util.load_model(name, **overrides)
File "/usr/local/lib/python3.6/dist-packages/spacy/util.py", line 175, in load_model
raise IOError(Errors.E050.format(name=name))
OSError: [E050] Can't find model 'en_core_web_md.vectors'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Description
I am unable to run the Linker REST API service and I am getting following exception:
It is known issue with multi-threaded workers, is there is a fix for that?
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: