Skip to content

Commit ba36b0c

Browse files
committed
例えば
1 parent 619daa1 commit ba36b0c

File tree

50 files changed

+3239
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3239
-1
lines changed

promptsource/templates.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,18 @@
2727
# These are users whose datasets should be included in the results returned by
2828
# filter_english_datasets (regardless of their metadata)
2929

30-
INCLUDED_USERS = {"Zaid", "craffel", "GEM", "aps", "khalidalt", "shanya", "rbawden", "BigScienceBiasEval", "gsarti"}
30+
INCLUDED_USERS = {
31+
"Zaid",
32+
"craffel",
33+
"GEM",
34+
"aps",
35+
"khalidalt",
36+
"shanya",
37+
"rbawden",
38+
"BigScienceBiasEval",
39+
"gsarti",
40+
"Helsinki-NLP",
41+
}
3142

3243
# These are the metrics with which templates can be tagged
3344
METRICS = {
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
dataset: Helsinki-NLP/tatoeba_mt
2+
subset: ara-eng
3+
templates:
4+
041f78d8-3976-47d8-a998-164049ef2255: !Template
5+
answer_choices: null
6+
id: 041f78d8-3976-47d8-a998-164049ef2255
7+
jinja: Translate the following text from Arabic to English {{ sourceString }}|||
8+
{{ targetString }}
9+
metadata: !TemplateMetadata
10+
choices_in_prompt: null
11+
languages: null
12+
metrics: null
13+
original_task: null
14+
name: translate-this-ara-eng
15+
reference: ''
16+
892cc6f3-184c-425e-8641-d9d319672756: !Template
17+
answer_choices: null
18+
id: 892cc6f3-184c-425e-8641-d9d319672756
19+
jinja: Translate the following text from English to Arabic {{ sourceString }}|||
20+
{{ targetString }}
21+
metadata: !TemplateMetadata
22+
choices_in_prompt: null
23+
languages: null
24+
metrics: null
25+
original_task: null
26+
name: translate-this-eng-ara
27+
reference: ''
28+
c4721b37-8ecf-4003-8ce8-5015b8a189d6: !Template
29+
answer_choices: null
30+
id: c4721b37-8ecf-4003-8ce8-5015b8a189d6
31+
jinja: Translate the following text from Arabic to English {{ sourceString }}|||
32+
{{ targetString }}
33+
metadata: !TemplateMetadata
34+
choices_in_prompt: null
35+
languages: null
36+
metrics: null
37+
original_task: null
38+
name: translate-this-ara-eng
39+
reference: ''
40+
c4fd77c7-229a-4cdc-a71a-86e402405cdb: !Template
41+
answer_choices: null
42+
id: c4fd77c7-229a-4cdc-a71a-86e402405cdb
43+
jinja: Translate the following text from English to Arabic {{ sourceString }}|||
44+
{{ targetString }}
45+
metadata: !TemplateMetadata
46+
choices_in_prompt: null
47+
languages: null
48+
metrics: null
49+
original_task: null
50+
name: translate-this-eng-ara
51+
reference: ''
52+
cbf14d1d-8fb7-4af3-812d-17968252422d: !Template
53+
answer_choices: null
54+
id: cbf14d1d-8fb7-4af3-812d-17968252422d
55+
jinja: Translate the following text from Arabic to English {{ sourceString }}|||
56+
{{ targetString }}
57+
metadata: !TemplateMetadata
58+
choices_in_prompt: null
59+
languages: null
60+
metrics: null
61+
original_task: null
62+
name: translate-this-ara-eng
63+
reference: ''
64+
d1e10c09-4c81-43bf-af6d-7fcb66949ad7: !Template
65+
answer_choices: null
66+
id: d1e10c09-4c81-43bf-af6d-7fcb66949ad7
67+
jinja: Translate the following text from Arabic to English {{ sourceString }}|||
68+
{{ targetString }}
69+
metadata: !TemplateMetadata
70+
choices_in_prompt: null
71+
languages: null
72+
metrics: null
73+
original_task: null
74+
name: translate-this-ara-eng
75+
reference: ''
76+
d337b262-ba2f-4520-99ff-15d1f15a11d0: !Template
77+
answer_choices: null
78+
id: d337b262-ba2f-4520-99ff-15d1f15a11d0
79+
jinja: Translate the following text from Arabic to English {{ sourceString }}|||
80+
{{ targetString }}
81+
metadata: !TemplateMetadata
82+
choices_in_prompt: null
83+
languages: null
84+
metrics: null
85+
original_task: null
86+
name: translate-this-ara-eng
87+
reference: ''
88+
d4061a46-e59b-45c9-9374-0a3285e5552e: !Template
89+
answer_choices: null
90+
id: d4061a46-e59b-45c9-9374-0a3285e5552e
91+
jinja: Translate the following text from English to Arabic {{ sourceString }}|||
92+
{{ targetString }}
93+
metadata: !TemplateMetadata
94+
choices_in_prompt: null
95+
languages: null
96+
metrics: null
97+
original_task: null
98+
name: translate-this-eng-ara
99+
reference: ''
100+
d834dc81-68a9-499a-950c-77ff3051fdce: !Template
101+
answer_choices: null
102+
id: d834dc81-68a9-499a-950c-77ff3051fdce
103+
jinja: Translate the following text from English to Arabic {{ sourceString }}|||
104+
{{ targetString }}
105+
metadata: !TemplateMetadata
106+
choices_in_prompt: null
107+
languages: null
108+
metrics: null
109+
original_task: null
110+
name: translate-this-eng-ara
111+
reference: ''
112+
f13f3047-453b-45ba-b96f-e30c59efd402: !Template
113+
answer_choices: null
114+
id: f13f3047-453b-45ba-b96f-e30c59efd402
115+
jinja: Translate the following text from English to Arabic {{ sourceString }}|||
116+
{{ targetString }}
117+
metadata: !TemplateMetadata
118+
choices_in_prompt: null
119+
languages: null
120+
metrics: null
121+
original_task: null
122+
name: translate-this-eng-ara
123+
reference: ''
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
dataset: Helsinki-NLP/tatoeba_mt
2+
subset: ara-fra
3+
templates:
4+
01f57037-43d9-4395-b6d9-511e966e05cb: !Template
5+
answer_choices: null
6+
id: 01f57037-43d9-4395-b6d9-511e966e05cb
7+
jinja: Translate the following text from Arabic to French {{ sourceString }}|||
8+
{{ targetString }}
9+
metadata: !TemplateMetadata
10+
choices_in_prompt: null
11+
languages: null
12+
metrics: null
13+
original_task: null
14+
name: translate-this-ara-fra
15+
reference: ''
16+
35fdafa2-3790-4c45-8329-dc2a26977e26: !Template
17+
answer_choices: null
18+
id: 35fdafa2-3790-4c45-8329-dc2a26977e26
19+
jinja: Translate the following text from French to Arabic {{ sourceString }}|||
20+
{{ targetString }}
21+
metadata: !TemplateMetadata
22+
choices_in_prompt: null
23+
languages: null
24+
metrics: null
25+
original_task: null
26+
name: translate-this-fra-ara
27+
reference: ''
28+
4e594cf1-ebba-49f1-8d6c-90449c609ef7: !Template
29+
answer_choices: null
30+
id: 4e594cf1-ebba-49f1-8d6c-90449c609ef7
31+
jinja: Translate the following text from Arabic to French {{ sourceString }}|||
32+
{{ targetString }}
33+
metadata: !TemplateMetadata
34+
choices_in_prompt: null
35+
languages: null
36+
metrics: null
37+
original_task: null
38+
name: translate-this-ara-fra
39+
reference: ''
40+
53b3adcb-2c73-4ac6-a55e-6d479c3c2a13: !Template
41+
answer_choices: null
42+
id: 53b3adcb-2c73-4ac6-a55e-6d479c3c2a13
43+
jinja: Translate the following text from French to Arabic {{ sourceString }}|||
44+
{{ targetString }}
45+
metadata: !TemplateMetadata
46+
choices_in_prompt: null
47+
languages: null
48+
metrics: null
49+
original_task: null
50+
name: translate-this-fra-ara
51+
reference: ''
52+
68269a17-4018-4258-a1aa-e3b401317d79: !Template
53+
answer_choices: null
54+
id: 68269a17-4018-4258-a1aa-e3b401317d79
55+
jinja: Translate the following text from Arabic to French {{ sourceString }}|||
56+
{{ targetString }}
57+
metadata: !TemplateMetadata
58+
choices_in_prompt: null
59+
languages: null
60+
metrics: null
61+
original_task: null
62+
name: translate-this-ara-fra
63+
reference: ''
64+
75ea5efd-97fc-4115-99d2-8e7cff29754d: !Template
65+
answer_choices: null
66+
id: 75ea5efd-97fc-4115-99d2-8e7cff29754d
67+
jinja: Translate the following text from French to Arabic {{ sourceString }}|||
68+
{{ targetString }}
69+
metadata: !TemplateMetadata
70+
choices_in_prompt: null
71+
languages: null
72+
metrics: null
73+
original_task: null
74+
name: translate-this-fra-ara
75+
reference: ''
76+
8f460fe0-0ecf-4e36-b14a-d8ed48c53338: !Template
77+
answer_choices: null
78+
id: 8f460fe0-0ecf-4e36-b14a-d8ed48c53338
79+
jinja: Translate the following text from Arabic to French {{ sourceString }}|||
80+
{{ targetString }}
81+
metadata: !TemplateMetadata
82+
choices_in_prompt: null
83+
languages: null
84+
metrics: null
85+
original_task: null
86+
name: translate-this-ara-fra
87+
reference: ''
88+
b06d0640-2e60-4bb0-87e0-4ec6daadf7c9: !Template
89+
answer_choices: null
90+
id: b06d0640-2e60-4bb0-87e0-4ec6daadf7c9
91+
jinja: Translate the following text from French to Arabic {{ sourceString }}|||
92+
{{ targetString }}
93+
metadata: !TemplateMetadata
94+
choices_in_prompt: null
95+
languages: null
96+
metrics: null
97+
original_task: null
98+
name: translate-this-fra-ara
99+
reference: ''
100+
ba29d89b-ebff-408d-b0db-8816c502311e: !Template
101+
answer_choices: null
102+
id: ba29d89b-ebff-408d-b0db-8816c502311e
103+
jinja: Translate the following text from French to Arabic {{ sourceString }}|||
104+
{{ targetString }}
105+
metadata: !TemplateMetadata
106+
choices_in_prompt: null
107+
languages: null
108+
metrics: null
109+
original_task: null
110+
name: translate-this-fra-ara
111+
reference: ''
112+
bf962b77-7fd6-421f-9048-ed336ecb7794: !Template
113+
answer_choices: null
114+
id: bf962b77-7fd6-421f-9048-ed336ecb7794
115+
jinja: Translate the following text from Arabic to French {{ sourceString }}|||
116+
{{ targetString }}
117+
metadata: !TemplateMetadata
118+
choices_in_prompt: null
119+
languages: null
120+
metrics: null
121+
original_task: null
122+
name: translate-this-ara-fra
123+
reference: ''
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
dataset: Helsinki-NLP/tatoeba_mt
2+
subset: ara-spa
3+
templates:
4+
1f7ff3f8-8c8b-42d6-95eb-e1ded6b13982: !Template
5+
answer_choices: null
6+
id: 1f7ff3f8-8c8b-42d6-95eb-e1ded6b13982
7+
jinja: Translate the following text from Arabic to Spanish {{ sourceString }}|||
8+
{{ targetString }}
9+
metadata: !TemplateMetadata
10+
choices_in_prompt: null
11+
languages: null
12+
metrics: null
13+
original_task: null
14+
name: translate-this-ara-spa
15+
reference: ''
16+
380382f7-d038-43f6-ae82-99f510b265da: !Template
17+
answer_choices: null
18+
id: 380382f7-d038-43f6-ae82-99f510b265da
19+
jinja: Translate the following text from Spanish to Arabic {{ sourceString }}|||
20+
{{ targetString }}
21+
metadata: !TemplateMetadata
22+
choices_in_prompt: null
23+
languages: null
24+
metrics: null
25+
original_task: null
26+
name: translate-this-spa-ara
27+
reference: ''
28+
5530d114-3652-4e72-9346-12d127529751: !Template
29+
answer_choices: null
30+
id: 5530d114-3652-4e72-9346-12d127529751
31+
jinja: Translate the following text from Arabic to Spanish {{ sourceString }}|||
32+
{{ targetString }}
33+
metadata: !TemplateMetadata
34+
choices_in_prompt: null
35+
languages: null
36+
metrics: null
37+
original_task: null
38+
name: translate-this-ara-spa
39+
reference: ''
40+
6ec4ba8f-496d-46cc-893f-a87235408a28: !Template
41+
answer_choices: null
42+
id: 6ec4ba8f-496d-46cc-893f-a87235408a28
43+
jinja: Translate the following text from Spanish to Arabic {{ sourceString }}|||
44+
{{ targetString }}
45+
metadata: !TemplateMetadata
46+
choices_in_prompt: null
47+
languages: null
48+
metrics: null
49+
original_task: null
50+
name: translate-this-spa-ara
51+
reference: ''
52+
78244c0e-8a41-48a7-b1ee-ef59ef4f7761: !Template
53+
answer_choices: null
54+
id: 78244c0e-8a41-48a7-b1ee-ef59ef4f7761
55+
jinja: Translate the following text from Spanish to Arabic {{ sourceString }}|||
56+
{{ targetString }}
57+
metadata: !TemplateMetadata
58+
choices_in_prompt: null
59+
languages: null
60+
metrics: null
61+
original_task: null
62+
name: translate-this-spa-ara
63+
reference: ''
64+
a4fc5fed-8c32-4ebd-85e9-fa40a1601b3d: !Template
65+
answer_choices: null
66+
id: a4fc5fed-8c32-4ebd-85e9-fa40a1601b3d
67+
jinja: Translate the following text from Arabic to Spanish {{ sourceString }}|||
68+
{{ targetString }}
69+
metadata: !TemplateMetadata
70+
choices_in_prompt: null
71+
languages: null
72+
metrics: null
73+
original_task: null
74+
name: translate-this-ara-spa
75+
reference: ''
76+
be578322-e949-4828-a86b-1f7358dedfb1: !Template
77+
answer_choices: null
78+
id: be578322-e949-4828-a86b-1f7358dedfb1
79+
jinja: Translate the following text from Spanish to Arabic {{ sourceString }}|||
80+
{{ targetString }}
81+
metadata: !TemplateMetadata
82+
choices_in_prompt: null
83+
languages: null
84+
metrics: null
85+
original_task: null
86+
name: translate-this-spa-ara
87+
reference: ''
88+
c5eaffb0-bd37-4be2-87b5-9373f775d53a: !Template
89+
answer_choices: null
90+
id: c5eaffb0-bd37-4be2-87b5-9373f775d53a
91+
jinja: Translate the following text from Arabic to Spanish {{ sourceString }}|||
92+
{{ targetString }}
93+
metadata: !TemplateMetadata
94+
choices_in_prompt: null
95+
languages: null
96+
metrics: null
97+
original_task: null
98+
name: translate-this-ara-spa
99+
reference: ''
100+
c941e815-dce8-433a-a683-9dda35666f2e: !Template
101+
answer_choices: null
102+
id: c941e815-dce8-433a-a683-9dda35666f2e
103+
jinja: Translate the following text from Arabic to Spanish {{ sourceString }}|||
104+
{{ targetString }}
105+
metadata: !TemplateMetadata
106+
choices_in_prompt: null
107+
languages: null
108+
metrics: null
109+
original_task: null
110+
name: translate-this-ara-spa
111+
reference: ''
112+
df095d7f-0f9a-4124-99d7-9e9aa31655ee: !Template
113+
answer_choices: null
114+
id: df095d7f-0f9a-4124-99d7-9e9aa31655ee
115+
jinja: Translate the following text from Spanish to Arabic {{ sourceString }}|||
116+
{{ targetString }}
117+
metadata: !TemplateMetadata
118+
choices_in_prompt: null
119+
languages: null
120+
metrics: null
121+
original_task: null
122+
name: translate-this-spa-ara
123+
reference: ''

0 commit comments

Comments
 (0)