mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Fix assignment of dep strings in tokens.pyx
This commit is contained in:
parent
6b6bce9e7a
commit
6865c2fb4d
|
@ -239,7 +239,7 @@ cdef class Tokens:
|
|||
for i in range(self.length):
|
||||
self.data[i] = parsed[i]
|
||||
dep_strings = [None] * len(label_ids)
|
||||
for id_, dep_string in label_ids.items():
|
||||
for dep_string, id_ in label_ids.items():
|
||||
dep_strings[id_] = dep_string
|
||||
self._dep_strings = tuple(dep_strings)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user