mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
23 lines
493 B
Python
23 lines
493 B
Python
# coding: utf8
|
|
from __future__ import unicode_literals
|
|
|
|
from ...lang.en import English
|
|
|
|
|
|
def test_issue1506():
|
|
nlp = English()
|
|
|
|
def string_generator():
|
|
for _ in range(10001):
|
|
yield "It's sentence produced by that bug."
|
|
|
|
for _ in range(10001):
|
|
yield "I erase lemmas."
|
|
|
|
for _ in range(10001):
|
|
yield "It's sentence produced by that bug."
|
|
|
|
for d in nlp.pipe(string_generator()):
|
|
for t in d:
|
|
str(t.lemma_)
|