spaCy/spacy/tests/regression/test_issue2835.py
2019-02-08 14:14:49 +01:00

12 lines
458 B
Python

# coding: utf8
from __future__ import unicode_literals
def test_issue2835(en_tokenizer):
"""Check that sentence doesn't cause an infinite loop in the tokenizer."""
text = """
oow.jspsearch.eventoracleopenworldsearch.technologyoraclesolarissearch.technologystoragesearch.technologylinuxsearch.technologyserverssearch.technologyvirtualizationsearch.technologyengineeredsystemspcodewwmkmppscem:
"""
doc = en_tokenizer(text)
assert doc