From a81c5a7abf159692dcb33af207ead0e7190eebbe Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 16 Oct 2016 12:00:27 +0200 Subject: [PATCH] Fix name of labels keyword to 'actions'. --- spacy/language.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index 65193880e..c1ba5de01 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -104,8 +104,8 @@ class BaseDefaults(object): else: if 'features' not in cfg: cfg['features'] = self.parser_features - if 'labels' not in cfg: - cfg['labels'] = self.parser_labels + if 'actions' not in cfg: + cfg['actions'] = self.parser_labels return Parser.blank(vocab, ArcEager, **cfg) def Entity(self, vocab, **cfg): @@ -114,8 +114,8 @@ class BaseDefaults(object): else: if 'features' not in cfg: cfg['features'] = self.entity_features - if 'labels' not in cfg: - cfg['labels'] = self.entity_labels + if 'actions' not in cfg: + cfg['actions'] = self.entity_labels return Parser.blank(vocab, BiluoPushDown, **cfg) def Matcher(self, vocab, **cfg):