spaCy/spacy/tests/regression/test_issue4924.py

10 lines
192 B
Python
Raw Normal View History

import pytest
2020-02-18 14:17:03 +00:00
from spacy.language import Language
2020-03-26 12:38:14 +00:00
def test_issue4924():
2020-02-18 14:17:03 +00:00
nlp = Language()
docs_golds = [("", {})]
2020-02-18 14:17:03 +00:00
with pytest.raises(ValueError):
nlp.evaluate(docs_golds)