mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-12 07:15:48 +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:
|
if "lemma" in token:
|
||||||
lemmas.append(token["lemma"])
|
lemmas.append(token["lemma"])
|
||||||
if "head" in token:
|
if "head" in token:
|
||||||
heads.append(token["head"])
|
heads.append(token["head"] + sent_start_i + i)
|
||||||
if "dep" in token:
|
if "dep" in token:
|
||||||
labels.append(token["dep"])
|
labels.append(token["dep"])
|
||||||
# Ensure ROOT label is case-insensitive
|
# Ensure ROOT label is case-insensitive
|
||||||
|
|
Loading…
Reference in New Issue
Block a user