* Update Doc serialization for new Packer interface

This commit is contained in:
Matthew Honnibal 2015-07-20 01:38:04 +02:00
parent 1f7170e0e1
commit 8743a8c084

View File

@ -403,7 +403,5 @@ cdef class Doc:
except StopIteration: except StopIteration:
keep_reading = False keep_reading = False
bits = BitArray(data) bits = BitArray(data)
array = vocab.packer.unpack(bits) doc = vocab.packer.unpack(bits)
doc = Doc(vocab, array[:, :2])
doc.from_array(vocab.packer.attrs, array)
yield doc yield doc