2017-11-11 03:11:27 +03:00
|
|
|
# coding: utf8
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from ...lang.en import English
|
|
|
|
|
|
|
|
|
|
|
|
def test_issue1506():
|
|
|
|
nlp = English()
|
|
|
|
|
|
|
|
def string_generator():
|
2017-11-11 11:31:59 +03:00
|
|
|
for _ in range(10001):
|
|
|
|
yield "It's sentence produced by that bug."
|
2017-11-11 03:11:27 +03:00
|
|
|
|
2017-11-11 11:31:59 +03:00
|
|
|
for _ in range(10001):
|
|
|
|
yield "I erase lemmas."
|
2017-11-11 03:11:27 +03:00
|
|
|
|
2017-11-11 11:31:59 +03:00
|
|
|
for _ in range(10001):
|
|
|
|
yield "It's sentence produced by that bug."
|
2017-11-11 03:11:27 +03:00
|
|
|
|
|
|
|
for d in nlp.pipe(string_generator()):
|
|
|
|
for t in d:
|
|
|
|
str(t.lemma_)
|