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