spaCy/spacy/tests/regression/test_issue588.py

15 lines
318 B
Python
Raw Normal View History

2017-01-10 21:24:10 +03:00
# coding: utf-8
from __future__ import unicode_literals
from ...vocab import Vocab
from ...tokens import Doc
from ...matcher import Matcher
2017-01-10 21:24:10 +03:00
import pytest
def test_issue588():
matcher = Matcher(Vocab())
with pytest.raises(ValueError):
matcher.add(entity_key='1', label='TEST', attrs={}, specs=[[]])