mirror of https://github.com/explosion/spaCy.git
* Don't set dependency labels in set_parse, as this may be used by the Entity recogniser instead. Need to clean this method up...
This commit is contained in:
parent
71648205d9
commit
e770fade1e
|
@ -249,8 +249,6 @@ cdef class Tokens:
|
||||||
self.is_parsed = True
|
self.is_parsed = True
|
||||||
for i in range(self.length):
|
for i in range(self.length):
|
||||||
self.data[i] = parsed[i]
|
self.data[i] = parsed[i]
|
||||||
if self.data[i].dep == 0:
|
|
||||||
self.data[i].dep = self.vocab.strings['ROOT']
|
|
||||||
|
|
||||||
|
|
||||||
cdef class Span:
|
cdef class Span:
|
||||||
|
|
Loading…
Reference in New Issue