mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 18:36:36 +03:00
13 lines
303 B
Python
13 lines
303 B
Python
# coding: utf8
|
|
from __future__ import unicode_literals
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.mark.parametrize('text', ["want/need"])
|
|
def test_issue891(en_tokenizer, text):
|
|
"""Test that / infixes are split correctly."""
|
|
tokens = en_tokenizer(text)
|
|
assert len(tokens) == 3
|
|
assert tokens[1].text == "/"
|