primeqa.mrc.data_models.target_type.TargetType#
- class primeqa.mrc.data_models.target_type.TargetType(value)#
Bases:
enum.IntEnum
Enumeration representing different types of answers to be used as a target in training.
Methods
Alternate constructor from a boolean label string.
Attributes
NO_ANSWER
SPAN_ANSWER
PASSAGE_ANSWER
YES
NO
- classmethod from_bool_label(label: str) primeqa.mrc.data_models.target_type.TargetType #
Alternate constructor from a boolean label string.
- Parameters
label – yes|no|none
- Returns
target type corresponding to label