modelzoo.transformers.data_processing.qa.qa_utils#

Functions

check_tokenizer_scheme

convert_examples_to_features

Loads a data file into a list of `InputBatch`s.

convert_examples_to_features_and_write

read_squad_examples

Read a SQuAD json file into a list of SquadExample.

Classes

InputFeatures

InputFeatures(unique_id, example_index, doc_span_index, tokens, token_to_orig_map, token_is_max_context, input_ids, input_mask, segment_ids, start_position, end_position, is_impossible)

SquadExample

A single training/test example for simple sequence classification.