From e770fade1e40b7627d728906e529e19e06fbefde Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 24 Mar 2015 04:30:04 +0100 Subject: [PATCH] * Don't set dependency labels in set_parse, as this may be used by the Entity recogniser instead. Need to clean this method up... --- spacy/tokens.pyx | 2 -- 1 file changed, 2 deletions(-) diff --git a/spacy/tokens.pyx b/spacy/tokens.pyx index 7be0097e0..038803c29 100644 --- a/spacy/tokens.pyx +++ b/spacy/tokens.pyx @@ -249,8 +249,6 @@ cdef class Tokens: self.is_parsed = True for i in range(self.length): self.data[i] = parsed[i] - if self.data[i].dep == 0: - self.data[i].dep = self.vocab.strings['ROOT'] cdef class Span: