mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 02:16:32 +03:00
12 lines
458 B
Python
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
|