Skip to content

Commit 5ed274d

Browse files
first template for hate_speech18 dataset (#721)
* first template for hate_speech dataset * fix template + wrap into conditional statement * Update promptsource/templates/hate_speech18/templates.yaml Co-authored-by: VictorSanh <[email protected]>
1 parent 7b665f6 commit 5ed274d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
dataset: hate_speech18
2+
templates:
3+
3266f9d4-9c80-4e17-a8a6-1fe44ca8f3bf: !Template
4+
answer_choices: noHate ||| hate
5+
id: 3266f9d4-9c80-4e17-a8a6-1fe44ca8f3bf
6+
jinja: '{% if label in [0, 1] %}
7+
8+
{{text}} Is the sentiment the sentence expresses is a {{answer_choices[1]}} speech
9+
or {{answer_choices[0]}} speech? ||| {{answer_choices[label]}}
10+
11+
{% endif %}'
12+
metadata: !TemplateMetadata
13+
choices_in_prompt: true
14+
metrics:
15+
- Accuracy
16+
original_task: true
17+
name: hate_or_noHate_sentiment_analysis
18+
reference: ''

0 commit comments

Comments
 (0)