mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-11 23:05:50 +03:00
fix the fix
This commit is contained in:
parent
e822367cf7
commit
d1d6f16776
|
@ -117,7 +117,7 @@ def json_to_annotations(doc):
|
|||
if "lemma" in token:
|
||||
lemmas.append(token["lemma"])
|
||||
if "head" in token:
|
||||
heads.append(token["head"])
|
||||
heads.append(token["head"] + sent_start_i + i)
|
||||
if "dep" in token:
|
||||
labels.append(token["dep"])
|
||||
# Ensure ROOT label is case-insensitive
|
||||
|
|
Loading…
Reference in New Issue
Block a user