Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Add IL-Facts task
Browse files- src/about.py +29 -0
src/about.py
CHANGED
@@ -17,6 +17,7 @@ class Tasks(Enum):
|
|
17 |
task2 = Task("custom|sentiment-acc|0", "sentiment_acc", "Sentiment Acc (Mafat)")
|
18 |
task3 = Task("custom|winograd-acc|0", "winograd_acc", "Winograd (Binary) Acc (V. Schwartz)")
|
19 |
task4 = Task("custom|he-en-trans-bleu|0", "sentence_bleu", "Translation BLEU")
|
|
|
20 |
|
21 |
NUM_FEWSHOT = 0 # Change with your few shot
|
22 |
# ---------------------------------------------------
|
@@ -210,6 +211,34 @@ Hebrew:
|
|
210 |
</p>
|
211 |
</blockquote>
|
212 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
"""
|
214 |
|
215 |
EVALUATION_QUEUE_TEXT = """
|
|
|
17 |
task2 = Task("custom|sentiment-acc|0", "sentiment_acc", "Sentiment Acc (Mafat)")
|
18 |
task3 = Task("custom|winograd-acc|0", "winograd_acc", "Winograd (Binary) Acc (V. Schwartz)")
|
19 |
task4 = Task("custom|he-en-trans-bleu|0", "sentence_bleu", "Translation BLEU")
|
20 |
+
task5 = Task("custom|ilfacts-acc|0", "ilfacts_acc", "Israeli Trivia")
|
21 |
|
22 |
NUM_FEWSHOT = 0 # Change with your few shot
|
23 |
# ---------------------------------------------------
|
|
|
211 |
</p>
|
212 |
</blockquote>
|
213 |
|
214 |
+
|
215 |
+
6. Israeli Trivia
|
216 |
+
|
217 |
+
- **Source**: We use a corpus of several hundred trivia questions about general world knowledge, specifically on Israel-related facts. We extend immense gratitude to Avraham Elitzur for helping us curate this dataset.
|
218 |
+
|
219 |
+
- **Scoring**: We provide in the prompt multiple-choice answers, and compute the accuracy score.
|
220 |
+
|
221 |
+
- **Number of examples**: 300 examples.
|
222 |
+
|
223 |
+
- **Few-Shot Format**: For every prompt, we provide 5 few-shot examples, and then the question at hand. Each example is formatted with the question, the possible answers, and the expected answer.
|
224 |
+
|
225 |
+
For example:
|
226 |
+
|
227 |
+
|
228 |
+
<blockquote dir="rtl" style="background-color: #f0f0f0;">
|
229 |
+
<p>
|
230 |
+
ืฉืืื: ืืืืื ืขืืจ ื ืขืจืื ืืืจืืช ืืืืื ื ืืจืฉืืืช ืขื ืืื ืืื ืื ืืืจืืื?<br/>
|
231 |
+
ืืคืฉืจืืืืช: "ืืจืืฉืืื" / "ืืฉืงืืื" / "ืชื ืืืื" / "ืฆืคืช"<br/>
|
232 |
+
ืชืฉืืื: ืชื ืืืื <br/>
|
233 |
+
|
234 |
+
...
|
235 |
+
|
236 |
+
ืฉืืื: ืฉืืื ืืืฉื<br/>
|
237 |
+
ืืคืฉืจืืืืช: "ืืคืฉืจืืช ื" / "ืืคืฉืจืืช ื" ...<br/>
|
238 |
+
ืชืฉืืื:
|
239 |
+
</blockquote>
|
240 |
+
|
241 |
+
|
242 |
"""
|
243 |
|
244 |
EVALUATION_QUEUE_TEXT = """
|