Commit a0c1dbbd authored by FarzanehNakhaee's avatar FarzanehNakhaee
Browse files

add resps and filter_resps to the example logger

parent b7cfed19
...@@ -238,7 +238,13 @@ def evaluate( ...@@ -238,7 +238,13 @@ def evaluate(
doc, [req.filtered_resps[key] for req in requests] doc, [req.filtered_resps[key] for req in requests]
) )
target = task.doc_to_target(doc) target = task.doc_to_target(doc)
example = {"doc_id": doc_id, "doc": doc['text'], "target": target} example = {
"doc_id": doc_id,
"doc": doc,
"target": target,
"resps": [req.resps for req in requests],
"filtered_resps": [req.filtered_resps[key] for req in requests]
}
example.update(metrics) example.update(metrics)
example_logger.info(json.dumps(example)) example_logger.info(json.dumps(example))
for metric, value in metrics.items(): for metric, value in metrics.items():
......
Markdown is supported
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