def wide_representation(key):
  """Create a wide representation of QA pairs used to construct the ASQA instance

  Args:
    key: Key of the ASQA instance

  Returns:
    Wide representation of QA pairs used to construct the ASQA instance
  """

  instance = asqa[key]
  questions, answers = [], []
  ambiguous_question = instance['ambiguous_question']

  for qa_pair in instance['qa_pairs']:
    questions.append(qa_pair['question'])
    answers.append(' | '.join(qa_pair['short_answers']))

  for _ in range(len(questions), 6):
    questions.append('NA')
    answers.append('NA')

  row = [ambiguous_question] + questions + answers

  return row
Create a wide representation of QA pairs used to construct the ASQA instance

  Args:
    key: Key of the ASQA instance

  Returns:
    Wide representation of QA pairs used to construct the ASQA instance
  
language/asqa/human_annotation/preparation.py