mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
* Whitespace
This commit is contained in:
parent
b0718b6ee1
commit
ea4ff94cde
|
@ -123,11 +123,9 @@ cdef class Packer:
|
||||||
self._orth_decode(bits, length, doc)
|
self._orth_decode(bits, length, doc)
|
||||||
else:
|
else:
|
||||||
self._char_decode(bits, -length, doc)
|
self._char_decode(bits, -length, doc)
|
||||||
|
|
||||||
array = numpy.zeros(shape=(len(doc), len(self._codecs)), dtype=numpy.int32)
|
array = numpy.zeros(shape=(len(doc), len(self._codecs)), dtype=numpy.int32)
|
||||||
for i, codec in enumerate(self._codecs):
|
for i, codec in enumerate(self._codecs):
|
||||||
codec.decode(bits, array[:, i])
|
codec.decode(bits, array[:, i])
|
||||||
|
|
||||||
doc.from_array(self.attrs, array)
|
doc.from_array(self.attrs, array)
|
||||||
return doc
|
return doc
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user