From 8743a8c0845a3f64cf3503613427f528e7a6adeb Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 20 Jul 2015 01:38:04 +0200 Subject: [PATCH] * Update Doc serialization for new Packer interface --- spacy/tokens/doc.pyx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index 3f84b9561..8f9e698b4 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -403,7 +403,5 @@ cdef class Doc: except StopIteration: keep_reading = False bits = BitArray(data) - array = vocab.packer.unpack(bits) - doc = Doc(vocab, array[:, :2]) - doc.from_array(vocab.packer.attrs, array) + doc = vocab.packer.unpack(bits) yield doc