mrc2dataset#

Functions

create_dataset_from_json_str

Converts the output of run_mrc.py (eval_predictions.json, not eval_predictions_processed.json) into a Dataset for use with the classifiers

create_dataset_from_run_mrc_output

Converts the output of run_mrc.py (eval_predictions.json, not eval_predictions_processed.json) into a Dataset for use with the classifiers

unpack_span_answer

span_answer is a dictionary with two items - split into separate items for easier handling with pandas/datasets

unpack_target_type

target_type_logits is an array of 5 numbers, with meanings determined by the TargetType enum.