* Hackishly patch long dependencies problem

This commit is contained in:
Matthew Honnibal 2015-07-27 23:14:33 +02:00
parent b96bf9b8cc
commit bb583f7f09
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ cdef class TransitionSystem:
self.freqs[attr] = defaultdict(int) self.freqs[attr] = defaultdict(int)
self.freqs[attr][0] = 1 self.freqs[attr][0] = 1
# Ensure we've seen heads. Need an official dependency length limit... # Ensure we've seen heads. Need an official dependency length limit...
for i in range(512): for i in range(1024):
self.freqs[HEAD][i] = 1 self.freqs[HEAD][i] = 1
self.freqs[HEAD][-i] = 1 self.freqs[HEAD][-i] = 1