Remove extraneous label from textcat class

This commit is contained in:
Matthew Honnibal 2017-11-06 22:09:02 +01:00
parent 45e0617e61
commit dd90fe09f5

View File

@ -784,7 +784,7 @@ class TextCategorizer(Pipe):
@property @property
def labels(self): def labels(self):
return self.cfg.setdefault('labels', ['LABEL']) return self.cfg.setdefault('labels', [])
@labels.setter @labels.setter
def labels(self, value): def labels(self, value):