-
Notifications
You must be signed in to change notification settings - Fork 377
Prompts for adjunct_island subset of blimp dataset #736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
awebson
merged 16 commits into
bigscience-workshop:eval-hackathon
from
Urmish:urmish/blimp
Apr 28, 2022
Merged
Changes from 11 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3272924
First 2 prompts for blimp
Urmish 74450d7
Fixed some template issues that led to conflicting details
Urmish b6f01db
Updated templates to avoid packing errors
Urmish 0a1689c
Added 2 new prompts with a different style of asking question
Urmish f651092
Add Najoung\'s templates
de16aa3
Added prompts for complex_NP_island
Urmish ef823c4
Updated the templates after the requested fixes
Urmish 1cd898e
Added templates for complex_NP_island via copy scripts
Urmish a431749
Updated templates for all subsets
Urmish 30a1cda
Switched to randomized prompts.
4f7f515
Minor changes to prompt names
najoungkim 52d4d1b
Fix answer_choices for some templates + better template names
najoungkim e91b438
Fixed extra spaces.
najoungkim 1246645
Added null prompts (true null and single quotation mark versions)
najoungkim a0a451d
Minor cleanup
najoungkim 7a37755
Prompt cleanups: true null prompt, choice randomization + dropping or…
najoungkim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
299 changes: 299 additions & 0 deletions
299
promptsource/templates/blimp/adjunct_island/templates.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,299 @@ | ||
| dataset: blimp | ||
| subset: adjunct_island | ||
| templates: | ||
| 3d2821a7-1c9c-44dd-ad23-e964b0998d1b: !Template | ||
| answer_choices: A ||| B | ||
| id: 3d2821a7-1c9c-44dd-ad23-e964b0998d1b | ||
| jinja: '{% set shuffled_order = [0, 1] | random %} | ||
|
|
||
| Read the following two sentences. | ||
|
|
||
| {% if shuffled_order == 0 %} | ||
|
|
||
| Sentence A: {{ sentence_good }} | ||
|
|
||
| Sentence B: {{ sentence_bad }} | ||
|
|
||
| {% else %} | ||
|
|
||
| Sentence A: {{ sentence_bad }} | ||
|
|
||
| Sentence B: {{ sentence_good }} | ||
|
|
||
| {% endif %} | ||
|
|
||
| Which one is a better sentence of English, B or A? ||| {% if shuffled_order | ||
| == 0 %} | ||
|
|
||
| {{ answer_choices[0] }} | ||
|
|
||
| {% else %} | ||
|
|
||
| {{ answer_choices[1] }} | ||
|
|
||
| {% endif %}' | ||
| metadata: !TemplateMetadata | ||
| choices_in_prompt: true | ||
| metrics: | ||
| - Accuracy | ||
| original_task: true | ||
| name: 'A/B choice randomized (choice order: B-A)' | ||
| reference: '' | ||
| 6e71cd4b-882c-4458-9cd4-fd83f849ad09: !Template | ||
| answer_choices: null | ||
| id: 6e71cd4b-882c-4458-9cd4-fd83f849ad09 | ||
| jinja: '{% set shuffled_order = [0, 1] | random %} | ||
|
|
||
| Between the two sentences, which one is grammatical? Please answer 1 or 2. | ||
|
|
||
| {% if shuffled_order == 0 %} | ||
|
|
||
| 1: {{ sentence_good }} | ||
|
|
||
| 2: {{ sentence_bad }} | ||
|
|
||
| {% else %} | ||
|
|
||
| 1: {{ sentence_bad }} | ||
|
|
||
| 2: {{ sentence_good }} | ||
|
|
||
| {% endif %} | ||
|
|
||
| ||| | ||
|
|
||
| {% if shuffled_order == 0 %} | ||
|
|
||
| 1 | ||
|
|
||
| {% else %} | ||
|
|
||
| 2 | ||
|
|
||
| {% endif %}' | ||
| metadata: !TemplateMetadata | ||
| choices_in_prompt: true | ||
| metrics: | ||
| - Accuracy | ||
| original_task: true | ||
| name: random_choice_1_2_2 | ||
| reference: '' | ||
| 7ed733fd-524c-4f00-800f-77a7a862ab4a: !Template | ||
| answer_choices: null | ||
| id: 7ed733fd-524c-4f00-800f-77a7a862ab4a | ||
| jinja: '{% set shuffled_order = [0, 1] | random %} | ||
|
|
||
| Which one of the following sentences is grammatical? Please answer 1 or 2. | ||
|
|
||
| {% if shuffled_order == 0 %} | ||
|
|
||
| 1: {{ sentence_good }} | ||
|
|
||
| 2: {{ sentence_bad }} | ||
|
|
||
| {% else %} | ||
|
|
||
| 1: {{ sentence_bad }} | ||
|
|
||
| 2: {{ sentence_good }} | ||
|
|
||
| {% endif %} | ||
|
|
||
| ||| | ||
|
|
||
| {% if shuffled_order == 0 %} | ||
|
|
||
| 1 | ||
|
|
||
| {% else %} | ||
|
|
||
| 2 | ||
|
|
||
| {% endif %}' | ||
| metadata: !TemplateMetadata | ||
| choices_in_prompt: true | ||
| metrics: | ||
| - Accuracy | ||
| original_task: true | ||
| name: random_choice_1_2 | ||
| reference: '' | ||
| 8bb3b001-cda4-43a3-8692-f191393bb2ef: !Template | ||
| answer_choices: Yes ||| No | ||
| id: 8bb3b001-cda4-43a3-8692-f191393bb2ef | ||
| jinja: '"{% set shuffled_order = [0, 1] | random %}{% if shuffled_order == 0 %}{{ | ||
| sentence_good }}{% else %}{{ sentence_bad }}{% endif %}" | ||
|
|
||
| Is this sentence a bad sentence of English, No or Yes? ||| {% if shuffled_order | ||
| == 0 %} {{ answer_choices[1] }} {% else %} {{ answer_choices[0] }} {% endif | ||
| %}' | ||
| metadata: !TemplateMetadata | ||
| choices_in_prompt: true | ||
| metrics: | ||
| - Accuracy | ||
| original_task: false | ||
| name: 'Yes/No binary judgment for bad sentences (choice order: No-Yes)' | ||
| reference: '' | ||
| 8f354d74-5ffb-4cbc-b119-b79f2db00df3: !Template | ||
| answer_choices: Yes ||| No | ||
| id: 8f354d74-5ffb-4cbc-b119-b79f2db00df3 | ||
| jinja: '"{% set shuffled_order = [0, 1] | random %}{% if shuffled_order == 0 %}{{ | ||
| sentence_good }}{% else %}{{ sentence_bad }}{% endif %}" | ||
|
|
||
| Is this sentence a bad sentence of English, Yes or No? ||| {% if shuffled_order | ||
| == 0 %} {{ answer_choices[1] }} {% else %} {{ answer_choices[0] }} {% endif | ||
| %}' | ||
| metadata: !TemplateMetadata | ||
| choices_in_prompt: true | ||
| metrics: | ||
| - Accuracy | ||
| original_task: false | ||
| name: 'Yes/No binary judgment for bad sentences (choice order: Yes-No)' | ||
| reference: '' | ||
| 967ca4e2-162f-4365-a1f5-2c87c0e874ce: !Template | ||
| answer_choices: null | ||
| id: 967ca4e2-162f-4365-a1f5-2c87c0e874ce | ||
| jinja: '{% set shuffled_order = [0, 1] | random %} | ||
|
|
||
| Between the two sentences, which one is grammatical? Please answer A or B. | ||
|
|
||
| {% if shuffled_order == 0 %} | ||
|
|
||
| A: {{ sentence_good }} | ||
|
|
||
| B: {{ sentence_bad }} | ||
|
|
||
| {% else %} | ||
|
|
||
| A: {{ sentence_bad }} | ||
|
|
||
| B: {{ sentence_good }} | ||
|
|
||
| {% endif %} | ||
|
|
||
| ||| | ||
|
|
||
| {% if shuffled_order == 0 %} | ||
|
|
||
| A | ||
|
|
||
| {% else %} | ||
|
|
||
| B | ||
|
|
||
| {% endif %}' | ||
| metadata: !TemplateMetadata | ||
| choices_in_prompt: true | ||
| metrics: | ||
| - Accuracy | ||
| original_task: true | ||
| name: random_choice_A_B_2 | ||
| reference: '' | ||
| a1997343-0a20-4f8c-8939-a512f0f68485: !Template | ||
| answer_choices: Yes ||| No | ||
| id: a1997343-0a20-4f8c-8939-a512f0f68485 | ||
| jinja: '"{% set shuffled_order = [0, 1] | random %}{% if shuffled_order == 0 %}{{ | ||
| sentence_good }}{% else %}{{ sentence_bad }}{% endif %}" | ||
|
|
||
| Is this sentence a good sentence of English, Yes or No? ||| {% if shuffled_order | ||
| == 0 %} {{ answer_choices[0] }} {% else %} {{ answer_choices[1] }} {% endif | ||
| %}' | ||
| metadata: !TemplateMetadata | ||
| choices_in_prompt: true | ||
| metrics: | ||
| - Accuracy | ||
| original_task: false | ||
| name: 'Yes/No binary judgment for good sentences (choice order: Yes-No)' | ||
| reference: '' | ||
| c45d5bac-968e-4e39-96b7-d18a5ddb225c: !Template | ||
| answer_choices: A ||| B | ||
| id: c45d5bac-968e-4e39-96b7-d18a5ddb225c | ||
| jinja: '{% set shuffled_order = [0, 1] | random %} | ||
|
|
||
| Read the following two sentences. | ||
|
|
||
| {% if shuffled_order == 0 %} | ||
|
|
||
| Sentence A: {{ sentence_good }} | ||
|
|
||
| Sentence B: {{ sentence_bad }} | ||
|
|
||
| {% else %} | ||
|
|
||
| Sentence A: {{ sentence_bad }} | ||
|
|
||
| Sentence B: {{ sentence_good }} | ||
|
|
||
| {% endif %} | ||
|
|
||
| Which one is a better sentence of English, A or B? ||| {% if shuffled_order | ||
| == 0 %} | ||
|
|
||
| {{ answer_choices[0] }} | ||
|
|
||
| {% else %} | ||
|
|
||
| {{ answer_choices[1] }} | ||
|
|
||
| {% endif %}' | ||
| metadata: !TemplateMetadata | ||
| choices_in_prompt: true | ||
| metrics: | ||
| - Accuracy | ||
| original_task: true | ||
| name: 'A/B choice randomized (choice order: A-B)' | ||
| reference: '' | ||
| d11a37d7-7c42-4ee0-96c5-ffd24ad7073e: !Template | ||
| answer_choices: null | ||
| id: d11a37d7-7c42-4ee0-96c5-ffd24ad7073e | ||
| jinja: '{% set shuffled_order = [0, 1] | random %} | ||
|
|
||
| Which one of the following sentences is grammatical? Please answer A or B. | ||
|
|
||
| {% if shuffled_order == 0 %} | ||
|
|
||
| A: {{ sentence_good }} | ||
|
|
||
| B: {{ sentence_bad }} | ||
|
|
||
| {% else %} | ||
|
|
||
| A: {{ sentence_bad }} | ||
|
|
||
| B: {{ sentence_good }} | ||
|
|
||
| {% endif %} | ||
|
|
||
| ||| | ||
|
|
||
| {% if shuffled_order == 0 %} | ||
|
|
||
| A | ||
|
|
||
| {% else %} | ||
|
|
||
| B | ||
|
|
||
| {% endif %}' | ||
| metadata: !TemplateMetadata | ||
| choices_in_prompt: true | ||
| metrics: | ||
| - Accuracy | ||
| original_task: true | ||
| name: random_choice_A_B | ||
| reference: '' | ||
| f4f94eda-a7ac-485a-82d1-e36012771762: !Template | ||
| answer_choices: Yes ||| No | ||
| id: f4f94eda-a7ac-485a-82d1-e36012771762 | ||
| jinja: '"{% set shuffled_order = [0, 1] | random %}{% if shuffled_order == 0 %}{{ | ||
| sentence_good }}{% else %}{{ sentence_bad }}{% endif %}" | ||
|
|
||
| Is this sentence a good sentence of English, No or Yes? ||| {% if shuffled_order | ||
| == 0 %} {{ answer_choices[0] }} {% else %} {{ answer_choices[1] }} {% endif | ||
| %}' | ||
| metadata: !TemplateMetadata | ||
| choices_in_prompt: true | ||
| metrics: | ||
| - Accuracy | ||
| original_task: false | ||
| name: 'Yes/No binary judgment for good sentences (choice order: No-Yes)' | ||
| reference: '' | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space after Sentence: A
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, fixed! Thanks!