-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstory_cloze.yaml
37 lines (30 loc) · 1.32 KB
/
story_cloze.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# The name of the dataset to use (via the datasets library).
dataset_name: &path 'story_cloze'
# The configuration name of the dataset to use (via the datasets library).
dataset_config_name: &name '2016'
# The split name of the dataset to use (via the datasets library).
split: &split 'test'
# Specify the arguments required to utilize datasets.load_dataset
# https://huggingface.co/docs/datasets/package_reference/loading_methods#datasets.load_dataset
DATASET_KWARGS:
path: *path
name: *name
data_dir: "./extraction/story_cloze"
split: *split
# Arguments for proper data preprocessing
DATASET_INFO:
# Number of classes
num_classes: 2
# For dynamic task, specify column names for candidate answers
choices: ['sentence_quiz1', 'sentence_quiz2']
# Correct Answer Label Column Name
label: 'answer_right_ending'
# Dynamic task or not
is_dynamic: true
# Arguments required to add a custom prompt
TEMPLATE_INFO:
# Name of the text column in the dataset to use
text_formats: ["{{input_sentence_1}}", "{{input_sentence_2}}", "{{input_sentence_3}}", "{{input_sentence_4}}"]
# Refer to the following PromptSource template jinja and modify jinja_suffix.
# ./extraction/promptsource/templates/{dataset_name/dataset_config_name}/templates.yaml
jinja_suffix: " ||| {{ answer_choices[answer_right_ending | int() -1] }}"