mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
remove dtype (#11615)
This commit is contained in:
parent
ef74f8f5e4
commit
29649589fc
|
@ -149,7 +149,7 @@ class EditTreeLemmatizer(TrainablePipe):
|
||||||
# Handle cases where there are no tokens in any docs.
|
# Handle cases where there are no tokens in any docs.
|
||||||
n_labels = len(self.cfg["labels"])
|
n_labels = len(self.cfg["labels"])
|
||||||
guesses: List[Ints2d] = [
|
guesses: List[Ints2d] = [
|
||||||
self.model.ops.alloc2i(0, n_labels, dtype="i") for _ in docs
|
self.model.ops.alloc2i(0, n_labels) for _ in docs
|
||||||
]
|
]
|
||||||
assert len(guesses) == n_docs
|
assert len(guesses) == n_docs
|
||||||
return guesses
|
return guesses
|
||||||
|
|
Loading…
Reference in New Issue
Block a user