Skip to content
Snippets Groups Projects
Commit 94054765 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[script.analyze] Issue warning if keys do not match on for second-annotator...

[script.analyze] Issue warning if keys do not match on for second-annotator evaluations (should not happen, normally)
parent d7d390d7
No related branches found
No related tags found
No related merge requests found
Pipeline #39964 passed
......@@ -275,7 +275,7 @@ def analyze(
f"(no equivalent `dataset[{k}]`)")
continue
if not dataset[k].all_keys_match(v):
logger.info(f"Skipping second-annotator '{k}' " \
logger.warning(f"Skipping second-annotator '{k}' " \
f"(keys do not match `dataset[{k}]`?)")
continue
candidate = os.path.join(analysis_folder, "second-annotator",
......
......@@ -190,7 +190,7 @@ def evaluate(
second = second_annotator.get(k)
if second is not None:
if not second.all_keys_match(v):
logger.warn(f"Key mismatch between `dataset[{k}]` and " \
logger.warning(f"Key mismatch between `dataset[{k}]` and " \
f"`second_annotator[{k}]` - skipping " \
f"second-annotator comparisons for {k} subset")
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment