From 44e2b0100d7f4d63fc749891cf96916bb9689b66 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 10 Jan 2017 22:47:07 +0100 Subject: [PATCH] Support TAG attribute in doc.from_array --- spacy/tokens/doc.pyx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index 8ce2c7fe4..30be63608 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -585,6 +585,9 @@ cdef class Doc: elif attr_id == POS: for i in range(length): tokens[i].pos = values[i] + elif attr_id == TAG: + for i in range(length): + tokens[i].tag = values[i] elif attr_id == DEP: for i in range(length): tokens[i].dep = values[i]