mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-28 12:53:41 +03:00
Adjust formatting [ci skip]
This commit is contained in:
parent
7503e1e505
commit
8f45ff3dc2
|
@ -12,12 +12,14 @@ from spacy.lang.en import English
|
||||||
from ..util import add_vecs_to_vocab, get_doc
|
from ..util import add_vecs_to_vocab, get_doc
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.xfail(
|
@pytest.mark.xfail
|
||||||
reason="The dot is now properly split off, but the prefix/suffix rules are not applied again afterwards."
|
|
||||||
"This means that the quote will still be attached to the remaining token."
|
|
||||||
)
|
|
||||||
def test_issue2070():
|
def test_issue2070():
|
||||||
"""Test that checks that a dot followed by a quote is handled appropriately."""
|
"""Test that checks that a dot followed by a quote is handled
|
||||||
|
appropriately.
|
||||||
|
"""
|
||||||
|
# Problem: The dot is now properly split off, but the prefix/suffix rules
|
||||||
|
# are not applied again afterwards. This means that the quote will still be
|
||||||
|
# attached to the remaining token.
|
||||||
nlp = English()
|
nlp = English()
|
||||||
doc = nlp('First sentence."A quoted sentence" he said ...')
|
doc = nlp('First sentence."A quoted sentence" he said ...')
|
||||||
assert len(doc) == 11
|
assert len(doc) == 11
|
||||||
|
|
Loading…
Reference in New Issue
Block a user