@staticmethod<EOL><INDENT>def _get_records(json_dict):<DEDENT>
records = []<EOL>record_index = <NUM_LIT:0><EOL>for title in json_dict['<STR_LIT:data>']:<EOL><INDENT>for paragraph in title['<STR_LIT>']:<EOL><INDENT>for qas in paragraph['<STR_LIT>']:<EOL><INDENT>answers = SQuAD._get_answers(qas)<EOL>is_impossible = qas.get('<STR_LIT>', None)<EOL>if is_impossible is not None:<EOL><INDENT>record = (<EOL>record_index, qas['<STR_LIT:id>'], qas['<STR_LIT>'],<EOL>paragraph['<STR_LIT>'], answers[<NUM_LIT:0>], answers[<NUM_LIT:1>], is_impossible<EOL>)<EOL><DEDENT>else:<EOL><INDENT>record = (<EOL>record_index, qas['<STR_LIT:id>'], qas['<STR_LIT>'],<EOL>paragraph['<STR_LIT>'], answers[<NUM_LIT:0>], answers[<NUM_LIT:1>])<EOL><DEDENT>record_index += <NUM_LIT:1><EOL>records.append(record)<EOL><DEDENT><DEDENT><DEDENT>return records<EOL>
Provides a list of tuples with records where answers are flatten

        :param dict, json_dict: File content loaded into json dictionary

        Returns
        -------
        List[Tuple]
            Flatten list of records in format: record_index, question_id, question, context,
            answer, answer_start_index, is_impossible(if version is '2.0)