Fix name of labels keyword to 'actions'.

This commit is contained in:
Matthew Honnibal 2016-10-16 12:00:27 +02:00
parent a079677984
commit a81c5a7abf
1 changed files with 4 additions and 4 deletions

View File

@ -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):