mirror of https://github.com/explosion/spaCy.git
* Hackishly patch long dependencies problem
This commit is contained in:
parent
b96bf9b8cc
commit
bb583f7f09
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue