spaCy/spacy/tests/regression/test_issue4924.py
2020-03-26 13:38:14 +01:00

10 lines
192 B
Python

import pytest
from spacy.language import Language
def test_issue4924():
nlp = Language()
docs_golds = [("", {})]
with pytest.raises(ValueError):
nlp.evaluate(docs_golds)