remove unnecessary itertools call

This commit is contained in:
svlandeg 2020-03-16 08:31:36 +01:00
parent 5847be6022
commit fba219f737

View File

@ -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: