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