From c044c0e18eee07ef0a6cbb76dd3debdc0262d292 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 8 Aug 2015 23:38:19 +0200 Subject: [PATCH] * Fix partial actions test --- tests/parser/test_initial_actions_parse.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/parser/test_initial_actions_parse.py b/tests/parser/test_initial_actions_parse.py index 2f45a6994..8c844ce13 100644 --- a/tests/parser/test_initial_actions_parse.py +++ b/tests/parser/test_initial_actions_parse.py @@ -4,5 +4,9 @@ import pytest def test_initial(EN): doc = EN.tokenizer(u'I ate the pizza with anchovies.') EN.tagger(doc) - EN.parser(doc, initial_actions=['L-nsubj', 'S', 'L-det']) + next_actions = EN.parser.partial(doc, actions=['L-nsubj', 'S', 'L-det']) assert doc[0].head.i == 1 + assert doc[1].head.i == 1 + assert doc[2].head.i == 2 + assert doc[3].head.i == 2 + assert doc