mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Assign ROOT label by default. May be papering over another bug.
This commit is contained in:
parent
9f4ad8fdfb
commit
231ce2dae5
|
@ -249,6 +249,8 @@ cdef class Tokens:
|
|||
self.is_parsed = True
|
||||
for i in range(self.length):
|
||||
self.data[i] = parsed[i]
|
||||
if self.data[i].dep == 0:
|
||||
self.data[i].dep = self.vocab.strings['ROOT']
|
||||
|
||||
|
||||
cdef class Span:
|
||||
|
|
Loading…
Reference in New Issue
Block a user