mirror of https://github.com/explosion/spaCy.git
Fix tensor shape in test for #3288
This commit is contained in:
parent
c32290557f
commit
8fa26ca97e
|
@ -16,5 +16,5 @@ def test_issue3288(en_vocab):
|
|||
heads = [1, 0, -1, 1, 0, 1, -2, -3]
|
||||
deps = ["intj", "ROOT", "punct", "advmod", "ROOT", "det", "nsubj", "punct"]
|
||||
doc = get_doc(en_vocab, words=words, heads=heads, deps=deps)
|
||||
doc.tensor = numpy.zeros(96, dtype="float32")
|
||||
doc.tensor = numpy.zeros((len(words), 96), dtype="float32")
|
||||
displacy.render(doc)
|
||||
|
|
Loading…
Reference in New Issue