From b449be0f04f6f2902006fbcd29b2fa546d1d3e19 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 25 Feb 2019 21:24:03 +0100 Subject: [PATCH] Add comment re issue #3170 --- spacy/tokens/doc.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index 98c03f589..e1c2fc575 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -1001,6 +1001,8 @@ cdef int set_children_from_heads(TokenC* tokens, int length) except -1: tokens[i].l_edge = i tokens[i].r_edge = i # Three times, for non-projectivity + # See issue #3170. This isn't a very satisfying fix, but I think it's + # sufficient. for loop_count in range(3): # Set left edges for i in range(length):