primeqa.mrc.metrics.tydi_f1.eval_utils.TyDiLabel#

class primeqa.mrc.metrics.tydi_f1.eval_utils.TyDiLabel(plaintext, question_text, example_id, language, passage_answer_index, passage_span, minimal_answer_span, yes_no_answer, passage_score, minimal_score)#

Bases: tuple

Methods

count

Return number of occurrences of value.

index

Return first index of value.

Attributes

example_id

Alias for field number 2

language

Alias for field number 3

minimal_answer_span

Alias for field number 6

minimal_score

Alias for field number 9

passage_answer_index

Alias for field number 4

passage_score

Alias for field number 8

passage_span

Alias for field number 5

plaintext

Alias for field number 0

question_text

Alias for field number 1

yes_no_answer

Alias for field number 7

__add__(value, /)#

Return self+value.

__mul__(value, /)#

Return self*value.

count(value, /)#

Return number of occurrences of value.

example_id#

Alias for field number 2

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

Return first index of value.

Raises ValueError if the value is not present.

language#

Alias for field number 3

minimal_answer_span#

Alias for field number 6

minimal_score#

Alias for field number 9

passage_answer_index#

Alias for field number 4

passage_score#

Alias for field number 8

passage_span#

Alias for field number 5

plaintext#

Alias for field number 0

question_text#

Alias for field number 1

yes_no_answer#

Alias for field number 7