From 99c9ecfc1899c30f02cc47001af9013ce8f45121 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 10 Apr 2015 03:53:33 +0200 Subject: [PATCH] * Fix bug in prefix, suffix and word shape features in parser and NER --- spacy/syntax/_parse_features.pyx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spacy/syntax/_parse_features.pyx b/spacy/syntax/_parse_features.pyx index e7ad8b9ab..363665138 100644 --- a/spacy/syntax/_parse_features.pyx +++ b/spacy/syntax/_parse_features.pyx @@ -29,6 +29,9 @@ cdef inline void fill_token(atom_t* context, const TokenC* token) nogil: context[4] = 0 context[5] = 0 context[6] = 0 + context[7] = 0 + context[8] = 0 + context[9] = 0 else: context[0] = token.lex.orth context[1] = token.lemma