remove unnecessary itertools call

This commit is contained in:
svlandeg 2020-03-16 08:31:36 +01:00
parent 5847be6022
commit fba219f737
1 changed files with 0 additions and 2 deletions

View File

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