diff --git a/spacy/syntax/nonproj.pyx b/spacy/syntax/nonproj.pyx index d01f19f9f..cace1a832 100644 --- a/spacy/syntax/nonproj.pyx +++ b/spacy/syntax/nonproj.pyx @@ -125,7 +125,7 @@ cpdef deprojectivize(Doc doc): new_label, head_label = label.split(DELIMITER) new_head = _find_new_head(doc[i], head_label) doc[i].head = new_head - doc.c[i].dep = new_label + doc.c[i].dep = doc.vocab.strings.add(new_label) return doc