mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +03:00
14 lines
362 B
Python
14 lines
362 B
Python
from __future__ import unicode_literals
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.mark.xfail
|
|
@pytest.mark.models('en')
|
|
def test_issue758(EN):
|
|
'''Test parser transition bug after label added.'''
|
|
from ...matcher import merge_phrase
|
|
nlp = EN()
|
|
nlp.matcher.add('splash', merge_phrase, [[{'LEMMA': 'splash'}, {'LEMMA': 'on'}]])
|
|
doc = nlp('splash On', parse=False)
|