Update spacy/language.py

Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
This commit is contained in:
Adriane Boyd 2023-02-06 12:05:12 +01:00 committed by GitHub
parent 6c268d4ed9
commit bffdef15dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1598,7 +1598,6 @@ class Language:
context = doc._context context = doc._context
doc._context = None doc._context = None
yield (doc, context) yield (doc, context)
return
def _has_gpu_model(self, disable: Iterable[str]): def _has_gpu_model(self, disable: Iterable[str]):
for name, proc in self.pipeline: for name, proc in self.pipeline: