mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +03:00
* Fix test initial parse
This commit is contained in:
parent
c044c0e18e
commit
d4e79a5ca2
|
@ -4,7 +4,7 @@ import pytest
|
||||||
def test_initial(EN):
|
def test_initial(EN):
|
||||||
doc = EN.tokenizer(u'I ate the pizza with anchovies.')
|
doc = EN.tokenizer(u'I ate the pizza with anchovies.')
|
||||||
EN.tagger(doc)
|
EN.tagger(doc)
|
||||||
next_actions = EN.parser.partial(doc, actions=['L-nsubj', 'S', 'L-det'])
|
next_actions = EN.parser.partial(doc, ['L-nsubj', 'S', 'L-det'])
|
||||||
assert doc[0].head.i == 1
|
assert doc[0].head.i == 1
|
||||||
assert doc[1].head.i == 1
|
assert doc[1].head.i == 1
|
||||||
assert doc[2].head.i == 2
|
assert doc[2].head.i == 2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user