mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Fix Pipe.labels
This commit is contained in:
parent
4ad26f4a2f
commit
e4f535a964
|
@ -35,10 +35,7 @@ cdef class Pipe:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def labels(self) -> Optional[Tuple[str]]:
|
def labels(self) -> Optional[Tuple[str]]:
|
||||||
if "labels" in self.cfg:
|
return []
|
||||||
return tuple(self.cfg["labels"])
|
|
||||||
else:
|
|
||||||
return None
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def label_data(self):
|
def label_data(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user