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

NamedEntityExtractor e2e test fails when component has not been warmed up #7761

Closed
julian-risch opened this issue May 30, 2024 · 0 comments · Fixed by #7769
Closed

NamedEntityExtractor e2e test fails when component has not been warmed up #7761

julian-risch opened this issue May 30, 2024 · 0 comments · Fixed by #7769
Assignees

Comments

@julian-risch
Copy link
Member

julian-risch commented May 30, 2024

def test_ner_extractor_init():
    extractor = NamedEntityExtractor(backend=NamedEntityExtractorBackend.HUGGING_FACE, model="dslim/bert-base-NER")

    with pytest.raises(ComponentError, match=r"not initialized"):
        extractor.run(documents=[])

fails with a different error than expected because #7752 changed that "Calling run() on a component that has not been warmed up raises a RuntimeError".
https://github.com/deepset-ai/haystack/actions/runs/9294812983

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant