mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Fix loading of English in span test
This commit is contained in:
parent
53d5bd62ee
commit
2516382106
|
@ -29,9 +29,8 @@ def test_root(doc):
|
|||
assert np.root.head.orth_ == 'is'
|
||||
|
||||
|
||||
def test_root2():
|
||||
def test_root2(EN):
|
||||
text = 'through North and South Carolina'
|
||||
EN = English(parser=False)
|
||||
doc = EN(text)
|
||||
heads = np.asarray([[0, 3, -1, -2, -4]], dtype='int32')
|
||||
doc.from_array([HEAD], heads.T)
|
||||
|
|
Loading…
Reference in New Issue
Block a user