mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
remove unnecessary itertools call
This commit is contained in:
parent
5847be6022
commit
fba219f737
|
@ -778,8 +778,6 @@ class Language(object):
|
|||
|
||||
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:
|
||||
warnings.warn(Warnings.W016, DeprecationWarning)
|
||||
if n_process == -1:
|
||||
|
|
Loading…
Reference in New Issue
Block a user