mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
15 lines
265 B
Python
15 lines
265 B
Python
from __future__ import unicode_literals
|
|
import pytest
|
|
|
|
from spacy.en import EN
|
|
|
|
def test_only_pre1():
|
|
assert len(EN.tokenize("(")) == 1
|
|
|
|
|
|
def test_only_pre2():
|
|
assert len(EN.tokenize("((")) == 2
|
|
|
|
def test_only_suf2():
|
|
assert len(EN.tokenize("''")) == 2
|