spaCy/spacy/tests/regression/test_issue758.py

14 lines
362 B
Python
Raw Normal View History

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