mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix Pipe.labels
This commit is contained in:
parent
4ad26f4a2f
commit
e4f535a964
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user