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

AssertionError when using nlp.rehearse() with en_core_web_trf #13724

Open
jama1017 opened this issue Dec 21, 2024 · 0 comments
Open

AssertionError when using nlp.rehearse() with en_core_web_trf #13724

jama1017 opened this issue Dec 21, 2024 · 0 comments

Comments

@jama1017
Copy link

How to reproduce the behaviour

I want to use rehearsal to correct some wrong dependency parsing tree produced by en_core_web_trf

I used the code directly from: https://github.com/explosion/spaCy/blob/be29216fe2451adead7f56ccd1db494fd8549dae/spacy/tests/training/test_rehearse.py

I modifed test_rehearse to be:

def test_rehearse(component):
    nlp = spacy.load("en_core_web_trf")
    _optimize(nlp, component, REHEARSE_DATA, True)

and called it with test_rehearse("parser")

Your Environment

  • spaCy version: 3.8.2
  • Platform: Linux-6.8.0-51-generic-x86_64-with-glibc2.39
  • Python version: 3.12.7
  • Pipelines: en_core_web_sm (3.8.0), en_core_web_lg (3.8.0), en_core_web_trf (3.8.0)

Error Message

I received the following error message:
image

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

1 participant