mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-06 21:03:07 +03:00
use 0 instead of none for no annotation
This commit is contained in:
parent
bfb9fa44a0
commit
28c31048c9
|
@ -914,7 +914,7 @@ def _compile_gold(
|
||||||
data["n_cycles"] += 1
|
data["n_cycles"] += 1
|
||||||
if "trainable_lemmatizer" in factory_names:
|
if "trainable_lemmatizer" in factory_names:
|
||||||
# from EditTreeLemmatizer._labels_from_data
|
# from EditTreeLemmatizer._labels_from_data
|
||||||
if all(token.lemma is None for token in gold):
|
if all(token.lemma == 0 for token in gold):
|
||||||
data["no_lemma_annotations"] += 1
|
data["no_lemma_annotations"] += 1
|
||||||
else:
|
else:
|
||||||
lemma_set = set()
|
lemma_set = set()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user