spaCy/spacy/tests/regression/test_issue758.py

14 lines
362 B
Python
Raw Normal View History

2017-04-24 08:09:01 +00:00
from __future__ import unicode_literals
import pytest
2017-05-22 11:54:20 +00:00
@pytest.mark.xfail
@pytest.mark.models('en')
2017-05-22 11:54:20 +00:00
def test_issue758(EN):
'''Test parser transition bug after label added.'''
2017-05-22 11:54:20 +00:00
from ...matcher import merge_phrase
nlp = EN()
nlp.matcher.add('splash', merge_phrase, [[{'LEMMA': 'splash'}, {'LEMMA': 'on'}]])
2017-03-31 11:59:32 +00:00
doc = nlp('splash On', parse=False)