Skip to content

Commit

Permalink
committing quail fix (#1249)
Browse files Browse the repository at this point in the history
Include question in example
  • Loading branch information
yzpang authored Dec 22, 2020
1 parent 192d6b5 commit 605d794
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jiant/tasks/lib/quail.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class QuailTask(mc_template.AbstractMultipleChoiceTask):
DataRow = DataRow
Batch = Batch

CHOICE_KEYS = ["0", "1", "2", "3"]
CHOICE_KEYS = [0, 1, 2, 3]
CHOICE_TO_ID, ID_TO_CHOICE = labels_to_bimap(CHOICE_KEYS)
NUM_CHOICES = len(CHOICE_KEYS)

Expand All @@ -53,7 +53,7 @@ def _create_examples(cls, lines, set_type):
examples.append(
Example(
guid="%s-%s" % (set_type, i),
prompt=line["context"],
prompt=line["context"] + " " + line["question"],
choice_list=[d for d in line["answers"]],
label=line["label"],
)
Expand Down

0 comments on commit 605d794

Please sign in to comment.