spaCy/spacy/tests/regression/test_issue4924.py
2020-02-18 15:17:03 +01:00

10 lines
191 B
Python

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