mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-15 06:09:01 +03:00
12 lines
266 B
Python
12 lines
266 B
Python
from __future__ import unicode_literals
|
|
|
|
import pytest
|
|
|
|
@pytest.mark.models
|
|
def test_space_attachment(EN):
|
|
sentence = 'This is a test.\nTo ensure spaces are attached well.'
|
|
doc = EN(sentence)
|
|
|
|
for sent in doc.sents:
|
|
assert not sent[-1].is_space
|