spaCy/spacy/tests/regression/test_issue588.py

13 lines
274 B
Python
Raw Normal View History

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