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

Error thrown out at LINE: from scispacy.linking import EntityLinker #446

Closed
rjiang9 opened this issue Aug 16, 2022 · 3 comments
Closed

Error thrown out at LINE: from scispacy.linking import EntityLinker #446

rjiang9 opened this issue Aug 16, 2022 · 3 comments

Comments

@rjiang9
Copy link

rjiang9 commented Aug 16, 2022

I am trying out scispacy on Mac M1:

  1. conda env with python=3.8 OK
  2. pip install scispacy OK
  3. pip install the models OK
  4. run sample code in section AbbreviationDetector OK

But when I run sample code in section EntityLinker, error thrown out:

zsh: illegal hardware instruction

and it looks the error is from line:
from scispacy.linking import EntityLinker

Any suggestion is appreciated.

RJ

image

@dakinggg
Copy link
Collaborator

This is likely to be an issue with nmslib (see nmslib/nmslib#476 for example). Could you see if anything over there works for you?

To verify if it is nmslib, it would also be great if you could try out some example.code from nmslib and see if that works.

Unfortunately I don't have an M1, so I can't really test anything myself.

@rjiang9
Copy link
Author

rjiang9 commented Aug 16, 2022

Thank you Daniel @dakinggg

It looks the solution from this thread works for me:

https://github.com/allenai/scispacy/issues/372

pip install --no-binary :all: nmslib

@dakinggg
Copy link
Collaborator

Great!

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