modelzoo.transformers.pytorch.bert.fine_tuning.qa.run_prediction.RawResult#

class modelzoo.transformers.pytorch.bert.fine_tuning.qa.run_prediction.RawResult#

Bases: tuple

RawResult(unique_id, start_logits, end_logits)

Create new instance of RawResult(unique_id, start_logits, end_logits)

Methods

count

Return number of occurrences of value.

index

Return first index of value.

Attributes

end_logits

Alias for field number 2

start_logits

Alias for field number 1

unique_id

Alias for field number 0

__add__(value, /)#

Return self+value.

__mul__(value, /)#

Return self*value.

static __new__(_cls, unique_id, start_logits, end_logits)#

Create new instance of RawResult(unique_id, start_logits, end_logits)

count(value, /)#

Return number of occurrences of value.

end_logits#

Alias for field number 2

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

Return first index of value.

Raises ValueError if the value is not present.

start_logits#

Alias for field number 1

unique_id#

Alias for field number 0