mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-21 22:10:34 +03:00
Fix
This commit is contained in:
parent
237cfa2053
commit
472eb28716
|
@ -289,7 +289,7 @@ class Tagger(Pipe):
|
||||||
if self.labels:
|
if self.labels:
|
||||||
label_sample = [
|
label_sample = [
|
||||||
self.model.ops.alloc2f(len(doc), len(self.labels))
|
self.model.ops.alloc2f(len(doc), len(self.labels))
|
||||||
for doc in docs
|
for doc in doc_sample
|
||||||
]
|
]
|
||||||
for y in label_sample:
|
for y in label_sample:
|
||||||
y[:, 0] = 1.0
|
y[:, 0] = 1.0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user