From 78a90683190416525ea8357f028867df6fcbe6bf Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 30 Jul 2015 04:25:58 +0200 Subject: [PATCH] * Fix spacy attr on merged tokens --- spacy/tokens/doc.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index f19df3f4e..19a1c922e 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -364,6 +364,7 @@ cdef class Doc: cdef TokenC* token = &self.data[start] # Update fields token.lex = lex + token.spacy = self.data[end].spacy # What to do about morphology?? # TODO: token.morph = ??? token.tag = self.vocab.strings[tag]