From a8bbd7312c66df35a458758ad9b82dbbd39584cd Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 28 Jul 2015 00:14:29 +0200 Subject: [PATCH] * Hackishly patch long dependencies problem --- spacy/syntax/transition_system.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/syntax/transition_system.pyx b/spacy/syntax/transition_system.pyx index a82f4af51..00395333f 100644 --- a/spacy/syntax/transition_system.pyx +++ b/spacy/syntax/transition_system.pyx @@ -35,7 +35,7 @@ cdef class TransitionSystem: self.freqs[attr] = defaultdict(int) self.freqs[attr][0] = 1 # Ensure we've seen heads. Need an official dependency length limit... - for i in range(1024): + for i in range(10024): self.freqs[HEAD][i] = 1 self.freqs[HEAD][-i] = 1