diff --git a/spacy/tests/regression/test_issue588.py b/spacy/tests/regression/test_issue588.py new file mode 100644 index 000000000..0b7defe75 --- /dev/null +++ b/spacy/tests/regression/test_issue588.py @@ -0,0 +1,10 @@ +import pytest +from ...vocab import Vocab +from ...tokens import Doc +from ...matcher import Matcher + + +def test_issue588(): + matcher = Matcher(Vocab()) + with pytest.raises(ValueError): + matcher.add(entity_key='1', label='TEST', attrs={}, specs=[[]])