From fba219f73765725afb7468c3c1b114df3e1a27f4 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Mon, 16 Mar 2020 08:31:36 +0100 Subject: [PATCH] remove unnecessary itertools call --- spacy/language.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index 20e29c829..6b3957deb 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -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: