2017-04-24 08:09:01 +00:00
|
|
|
from __future__ import unicode_literals
|
2017-03-31 11:26:25 +00:00
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
2017-05-22 11:54:20 +00:00
|
|
|
@pytest.mark.xfail
|
2017-05-29 20:14:31 +00:00
|
|
|
@pytest.mark.models('en')
|
2017-05-22 11:54:20 +00:00
|
|
|
def test_issue758(EN):
|
2017-03-31 11:26:25 +00:00
|
|
|
'''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)
|