mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 13:17:06 +03:00
9 lines
208 B
Python
9 lines
208 B
Python
|
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
|