modelzoo.transformers.data_processing.qa.qa_utils.SquadExample#

class modelzoo.transformers.data_processing.qa.qa_utils.SquadExample[source]#

Bases: object

A single training/test example for simple sequence classification. For examples without an answer, the start and end position are -1.

Methods

__init__(qas_id, question_text, doc_tokens, orig_answer_text=None, start_position=None, end_position=None, is_impossible=False)[source]#