primeqa.mrc.metrics.nq_f1.eval_utils.NQLabel#

class primeqa.mrc.metrics.nq_f1.eval_utils.NQLabel(example_id, long_answer_span, short_answer_span_list, yes_no_answer, long_score, short_score)#

Bases: tuple

Methods

count

Return number of occurrences of value.

index

Return first index of value.

Attributes

example_id

Alias for field number 0

long_answer_span

Alias for field number 1

long_score

Alias for field number 4

short_answer_span_list

Alias for field number 2

short_score

Alias for field number 5

yes_no_answer

Alias for field number 3

__add__(value, /)#

Return self+value.

__mul__(value, /)#

Return self*value.

count(value, /)#

Return number of occurrences of value.

example_id#

Alias for field number 0

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.

long_answer_span#

Alias for field number 1

long_score#

Alias for field number 4

short_answer_span_list#

Alias for field number 2

short_score#

Alias for field number 5

yes_no_answer#

Alias for field number 3