Skip to content

Add LinCE sentiment analysis prompts #757

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
merged 2 commits into from
May 9, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions promptsource/templates/lince/sa_spaeng/templates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
dataset: lince
subset: sa_spaeng
templates:
24eba864-8859-4a15-a7a9-0fdf42d9f6cf: !Template
answer_choices: positive ||| negative ||| neutral
id: 24eba864-8859-4a15-a7a9-0fdf42d9f6cf
jinja: '{{words | join(" ") }} What is the sentiment expressed by the original
poster? ||| {{ sa }}'
metadata: !TemplateMetadata
choices_in_prompt: false
metrics:
- Accuracy
original_task: true
name: original poster expressed sentiment
reference: imdb
29756194-c221-48b8-8d25-db1e681d9eeb: !Template
answer_choices: positive ||| negative ||| neutral
id: 29756194-c221-48b8-8d25-db1e681d9eeb
jinja: '{{words | join(" ") }} What sentiment is this post trying to express?
||| {{ sa }}'
metadata: !TemplateMetadata
choices_in_prompt: false
metrics:
- Accuracy
original_task: true
name: sentiment trying to express
reference: ''
52708ad1-0029-4d97-a5e9-e179da16e452: !Template
answer_choices: null
id: 52708ad1-0029-4d97-a5e9-e179da16e452
jinja: "{{ words | join(\" \") }} This is definitely \n||| \n{% if sa == \"negative\"\
\ %} \nnot a positive post. \n{% elif sa == \"positive\" %} \nnot a negative\
\ post. \n{% else %} \na neutral post.\n{% endif %}"
metadata: !TemplateMetadata
choices_in_prompt: false
metrics:
- Accuracy
original_task: false
name: negation template
reference: imdb
5dd871bc-140e-43a1-bf8d-6139863d85cd: !Template
answer_choices: positive ||| negative ||| neutral
id: 5dd871bc-140e-43a1-bf8d-6139863d85cd
jinja: What sentiment does following post express? Positive, negative, or neutral?
{{words | join(" ") }} ||| {{ sa }}
metadata: !TemplateMetadata
choices_in_prompt: true
metrics:
- Accuracy
original_task: true
name: express sentiment
reference: imdb
684d3d19-3100-432a-beb7-5fc0f8de72b5: !Template
answer_choices: positive ||| negative ||| neutral
id: 684d3d19-3100-432a-beb7-5fc0f8de72b5
jinja: What sentiment is the following post trying to express? {{words | join("
") }} ||| {{ sa }}
metadata: !TemplateMetadata
choices_in_prompt: false
metrics:
- Accuracy
original_task: true
name: sentiment trying to express 2
reference: ''
a036a20f-8192-4af8-83cd-e56f60fd6a0f: !Template
answer_choices: positive ||| negative ||| neutral
id: a036a20f-8192-4af8-83cd-e56f60fd6a0f
jinja: '{{ words | join(" ") }} The sentiment expressed in this post is ||| {{
sa }}'
metadata: !TemplateMetadata
choices_in_prompt: false
metrics:
- Accuracy
original_task: true
name: express sentiment 2
reference: imdb