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

model load error:Could not find: alms #13662

Open
andyhegedus opened this issue Oct 14, 2024 · 3 comments
Open

model load error:Could not find: alms #13662

andyhegedus opened this issue Oct 14, 2024 · 3 comments

Comments

@andyhegedus
Copy link

How to reproduce the behaviour

Your Environment

Info about spaCy

  • spaCy version: 3.7.5
  • Platform: macOS-10.16-x86_64-i386-64bit
  • Python version: 3.9.13
  • Pipelines: en_core_web_sm (3.7.1), en_core_web_md (3.7.1)

Spacy used to work fine, though I haven't used it recently.

Notebook code

import spacy

import en_core_web_sm
nlp = spacy.load("en_core_web_sm")
doc = nlp("Apple is looking at buying U.K. startup for $1 billion")

returns error:
3 import en_core_web_sm
----> 4 nlp = spacy.load("en_core_web_sm")
5 doc = nlp("Apple is looking at buying U.K. startup for $1 billion")

AttributeError: Could not find: llms

How do I resolve?

Andy

@honnibal
Copy link
Member

I'm not sure how the requirements have worked out exactly, but the resolution for now is to run pip install spacy-llm. If you install a fresh copy of spaCy it should all happen automatically.

@andyhegedus
Copy link
Author

Hi,
I ran pip install spacy-llm and I noticed that each package had "requirement already satisfied".
In Jupterlab, i restarted kernel to no avail. It yields the same error when it tries to load the language model.
----> 4 nlp = spacy.load("en_core_web_sm")

Next steps?
Andy

@andyhegedus
Copy link
Author

Hi,
I think some of the trouble is numpy version. The switch to version 2.0 on has broken several things. Some of the libraries that are loaded are incompatible with version 1.24.6 and others are incompatible with version 2.0.2. You language installer forces the dumpy 2.0.2 install and that breaks things.

What version of Spacy and language models works with lumpy 1.24.6? I did a clean reinstall of the Anaconda package and I need to use numpy version 1 for pandas library.
Andy

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