* Add test for specifying initial actions

This commit is contained in:
Matthew Honnibal 2015-08-08 19:14:01 +02:00
parent b0f5c39084
commit 63f86efa8b
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
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'])
assert doc[0].head.i == 1