mirror of https://github.com/explosion/spaCy.git
* Add test for specifying initial actions
This commit is contained in:
parent
b0f5c39084
commit
63f86efa8b
|
@ -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
|
Loading…
Reference in New Issue