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 all commits
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
100 changes: 100 additions & 0 deletions promptsource/templates/lince/sa_spaeng/templates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
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: positive ||| negative ||| neutral
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
Comment on lines +29 to +40
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, @RosenZhang ! The answer_choices for negation template do not align with the designed targets. E.g. the positive in answer_choices should actually be not a negative. Is there any chance we could get a fix for this? Thanks!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the catch, just open a new PR to fix this! Let me know if that works!

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
6186210a-a902-4f9b-b34a-25b01f193842: !Template
answer_choices: positive ||| negative ||| neutral
id: 6186210a-a902-4f9b-b34a-25b01f193842
jinja: From this post, "{{words | join(" ") }}". Does the author seem positive,
negative or neutral? ||| {{ sa }}
metadata: !TemplateMetadata
choices_in_prompt: true
metrics:
- Accuracy
original_task: true
name: the author seem
reference: ''
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
e26e9b00-f33a-43d2-98f7-5164d102fe7b: !Template
answer_choices: positive ||| negative ||| neutral
id: e26e9b00-f33a-43d2-98f7-5164d102fe7b
jinja: '{{words | join(" ") }}. Does this post sound positive, negative or neutral?
||| {{ sa }}'
metadata: !TemplateMetadata
choices_in_prompt: true
metrics:
- Accuracy
original_task: true
name: sentence sounds
reference: ''