Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Fix squad2 setup_data (#2708)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmielke authored May 30, 2020
1 parent 936d1af commit d191b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parlai/tasks/squad2/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def setup_data(self, path):
ans_list = [{"text": ""}]
if not qa['is_impossible']:
ans_list = qa['answers']
answers = (a['text'] for a in ans_list)
answers = tuple(a['text'] for a in ans_list)
context = paragraph['context']
yield (context + '\n' + question, answers), True

Expand Down

0 comments on commit d191b80

Please sign in to comment.