eval_utils#
Functions
Gets vote from multi-annotators for judging if there is a long answer. :param gold_label_list: list of gold labels for judging :param long_non_null_threshold: Require this many non-null long answer annotations to count gold as containing a long answer. Defaults to 2 like the original paper. |
|
Gets vote from multi-annotators for judging if there is a short answer. :param gold_label_list: list of gold labels :param short_non_null_threshold: Require this many non-null short answer annotations to count gold as containing a short answer. Defaults to 2 like the original paper. |
|
Returns true iff all spans in span_list are null or span_list is empty. |
|
Given two spans, return if they are equal. |
|
Read annotations with real multiple processes. |
|
Read annotation from one split of file. |
|
Read the prediction json with scores. |
|
Make the spans are completely equal besides null spans. |
Classes
A class for handling token and byte spans. |
Exceptions