Commit 1ee130ec authored by Vít Novotný's avatar Vít Novotný
Browse files

Create scripts.common.remove_nonjudged_topics_and_documents (cont.)

parent e69e56f8
Pipeline #57593 failed with stage
in 42 seconds
......@@ -8,8 +8,8 @@ from .configuration import EVALUATORS, PARSED_RELEVANCE_JUDGEMENTS
def remove_nonjudged_topics_and_documents(parsed_run, task, subset):
only_judged_parsed_run = deepcopy(parsed_run)
parsed_relevance_judgements = PARSED_RELEVANCE_JUDGEMENTS[subset][task]
only_judged_parsed_run = deepcopy(parsed_run)
for topic_name, results in parsed_run.items():
if topic_name not in parsed_relevance_judgements:
del only_judged_parsed_run[topic_name]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment