mirror of https://github.com/explosion/spaCy.git
Merge pull request #5157 from svlandeg/bugfix/language
remove unnecessary itertools call
This commit is contained in:
commit
558032017e
|
@ -778,8 +778,6 @@ class Language(object):
|
||||||
|
|
||||||
DOCS: https://spacy.io/api/language#pipe
|
DOCS: https://spacy.io/api/language#pipe
|
||||||
"""
|
"""
|
||||||
# raw_texts will be used later to stop iterator.
|
|
||||||
texts, raw_texts = itertools.tee(texts)
|
|
||||||
if n_threads != -1:
|
if n_threads != -1:
|
||||||
warnings.warn(Warnings.W016, DeprecationWarning)
|
warnings.warn(Warnings.W016, DeprecationWarning)
|
||||||
if n_process == -1:
|
if n_process == -1:
|
||||||
|
|
Loading…
Reference in New Issue