Fix more efficient nonproj

This commit is contained in:
Matthew Honnibal 2017-11-23 12:48:00 +00:00
parent e10e9ad2c5
commit f29c3925ee
1 changed files with 1 additions and 1 deletions

View File

@ -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