mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-13 01:32:32 +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'
|
assert np.root.head.orth_ == 'is'
|
||||||
|
|
||||||
|
|
||||||
def test_root2():
|
def test_root2(EN):
|
||||||
text = 'through North and South Carolina'
|
text = 'through North and South Carolina'
|
||||||
EN = English(parser=False)
|
|
||||||
doc = EN(text)
|
doc = EN(text)
|
||||||
heads = np.asarray([[0, 3, -1, -2, -4]], dtype='int32')
|
heads = np.asarray([[0, 3, -1, -2, -4]], dtype='int32')
|
||||||
doc.from_array([HEAD], heads.T)
|
doc.from_array([HEAD], heads.T)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user