From 4fc56d4a31e9d2af193f6fd3a0831f871bd57b19 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 16 Oct 2016 11:42:26 +0200 Subject: [PATCH] Rename 'labels' to 'actions' in parser options --- spacy/syntax/parser.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/syntax/parser.pyx b/spacy/syntax/parser.pyx index 33463444e..88015b7b1 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -85,7 +85,7 @@ cdef class Parser: # TODO: Remove this when we no longer need to support old-style models if isinstance(cfg.get('features'), basestring): cfg['features'] = get_templates(cfg['features']) - moves = moves_class(vocab.strings, cfg['labels']) + moves = moves_class(vocab.strings, cfg['actions']) model = ParserModel(cfg['features']) if (path / 'model').exists(): model.load(str(path / 'model')) @@ -93,7 +93,7 @@ cdef class Parser: @classmethod def blank(cls, Vocab vocab, moves_class, **cfg): - moves = moves_class(vocab.strings, cfg.get('labels', {})) + moves = moves_class(vocab.strings, cfg.get('actions', {})) templates = cfg.get('features', tuple()) model = ParserModel(templates) return cls(vocab, moves, model, **cfg)