From e4f535a964da107a5fd558acf3c975388f1dce75 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 29 Sep 2020 16:55:07 +0200 Subject: [PATCH] Fix Pipe.labels --- spacy/pipeline/pipe.pyx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spacy/pipeline/pipe.pyx b/spacy/pipeline/pipe.pyx index 481430a2c..49d0bea35 100644 --- a/spacy/pipeline/pipe.pyx +++ b/spacy/pipeline/pipe.pyx @@ -35,10 +35,7 @@ cdef class Pipe: @property def labels(self) -> Optional[Tuple[str]]: - if "labels" in self.cfg: - return tuple(self.cfg["labels"]) - else: - return None + return [] @property def label_data(self):