diff --git a/spacy/tokens.pyx b/spacy/tokens.pyx index e6f5d3068..5d727c01e 100644 --- a/spacy/tokens.pyx +++ b/spacy/tokens.pyx @@ -249,6 +249,8 @@ 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: