Merge pull request #5157 from svlandeg/bugfix/language

remove unnecessary itertools call
This commit is contained in:
Ines Montani 2020-03-16 15:04:25 +01:00 committed by GitHub
commit 558032017e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: