mirror of https://github.com/explosion/spaCy.git
Fix name of labels keyword to 'actions'.
This commit is contained in:
parent
a079677984
commit
a81c5a7abf
|
@ -104,8 +104,8 @@ class BaseDefaults(object):
|
||||||
else:
|
else:
|
||||||
if 'features' not in cfg:
|
if 'features' not in cfg:
|
||||||
cfg['features'] = self.parser_features
|
cfg['features'] = self.parser_features
|
||||||
if 'labels' not in cfg:
|
if 'actions' not in cfg:
|
||||||
cfg['labels'] = self.parser_labels
|
cfg['actions'] = self.parser_labels
|
||||||
return Parser.blank(vocab, ArcEager, **cfg)
|
return Parser.blank(vocab, ArcEager, **cfg)
|
||||||
|
|
||||||
def Entity(self, vocab, **cfg):
|
def Entity(self, vocab, **cfg):
|
||||||
|
@ -114,8 +114,8 @@ class BaseDefaults(object):
|
||||||
else:
|
else:
|
||||||
if 'features' not in cfg:
|
if 'features' not in cfg:
|
||||||
cfg['features'] = self.entity_features
|
cfg['features'] = self.entity_features
|
||||||
if 'labels' not in cfg:
|
if 'actions' not in cfg:
|
||||||
cfg['labels'] = self.entity_labels
|
cfg['actions'] = self.entity_labels
|
||||||
return Parser.blank(vocab, BiluoPushDown, **cfg)
|
return Parser.blank(vocab, BiluoPushDown, **cfg)
|
||||||
|
|
||||||
def Matcher(self, vocab, **cfg):
|
def Matcher(self, vocab, **cfg):
|
||||||
|
|
Loading…
Reference in New Issue