spaCy/spacy/tests/regression/test_issue4924.py

10 lines
191 B
Python
Raw Normal View History

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