Shaltiel commited on
Commit
531a096
1 Parent(s): cf85943

Added SNLI score

Browse files
Files changed (1) hide show
  1. src/about.py +44 -4
src/about.py CHANGED
@@ -12,10 +12,11 @@ class Task:
12
  # ---------------------------------------------------
13
  class Tasks(Enum):
14
  # task_key in the json file, metric_key in the json file, name to display in the leaderboard
15
- task0 = Task("custom|heq-qa-tlnls|0", "heq_tlnls", "QA TLNLS (HeQ)")
16
- task1 = Task("custom|sentiment-acc|0", "sentiment_acc", "Sentiment Acc (Mafat)")
17
- task2 = Task("custom|winograd-acc|0", "winograd_acc", "Winograd (Binary) Acc (V. Schwartz)")
18
- task3 = Task("custom|he-en-trans-bleu|0", "sentence_bleu", "Translation BLEU")
 
19
 
20
  NUM_FEWSHOT = 0 # Change with your few shot
21
  # ---------------------------------------------------
@@ -170,6 +171,45 @@ English: Some sentence to translate to Hebrew <br/>
170
  Hebrew:
171
  </blockquote>
172
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  """
174
 
175
  EVALUATION_QUEUE_TEXT = """
 
12
  # ---------------------------------------------------
13
  class Tasks(Enum):
14
  # task_key in the json file, metric_key in the json file, name to display in the leaderboard
15
+ task0 = Task("custom|snli-acc|0", "snli_acc", "SNLI Accuracy")
16
+ task1 = Task("custom|heq-qa-tlnls|0", "heq_tlnls", "QA TLNLS (HeQ)")
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
  # ---------------------------------------------------
 
171
  Hebrew:
172
  </blockquote>
173
 
174
+ 5. SNLI Accuracy
175
+
176
+ - **Source**: We took a sample of documents from the test-subset of the official SNLI corpus.
177
+
178
+ - **Scoring**: We compute the accuracy score on the predictions, expecting either "住转讬专讛", "讛转讗诪讛", or "讻诇讜诐".
179
+
180
+ - **Number of examples**: There are a total of 210 examples - 70 from each class - where each example was translated using [Dicta's translation engine](https://translate.dicta.org.il), and then manually reviewed and corrected as needed.
181
+
182
+ - **Few-Shot Format**: For every prompt, we provide 12 few-shot examples, 4 from each category.
183
+
184
+ For example:
185
+
186
+
187
+ <blockquote dir="rtl" style='text-align: right; background-color: #f0f0f0'>
188
+ <p>
189
+ 讛谞讞转 讬住讜讚: 谞注专 诪谞讙谉 讘讞爪讜爪专转讜 讘诪讛诇讱 讛讜驻注讛 注诐 诇讛拽转讜.<br/>
190
+ 讛砖注专讛: 诇讗祝 讗讞讚 讗讬谉 讞爪讜爪专讛.<br/>
191
+ 转砖讜讘讛: 住转讬专讛<br/>
192
+
193
+ ...
194
+
195
+ 讛谞讞转 讬住讜讚: 讛谞注专讛 诇讘讜砖讛 讘诪注讬诇 讞讜诐, 讘注讜讚讛 驻讜住注转 讘砖诇讙.<br/>
196
+ 讛砖注专讛: 讛讙讘专转 讛诇讜讘砖转 诪注讬诇 诪讞驻砖转 讗转 讻诇讘讛 讛讗讜讘讚.<br/>
197
+ 转砖讜讘讛: 讻诇讜诐<br/>
198
+
199
+ ...
200
+
201
+ 讛谞讞转 讬住讜讚: 住驻讬谞转志驻讗专 讘讛 讗谞砖讬诐 注讜诇讬诐 讜讬讜专讚讬诐.<br/>
202
+ 讛砖注专讛: 讗谞砖讬诐 注讜诇讬诐 讜讬讜专讚讬诐 诪住驻讬谞讜转.<br/>
203
+ 转砖讜讘讛: 讛转讗诪讛<br/>
204
+
205
+ ...
206
+
207
+ 讛谞讞转 讬住讜讚: 讛谞讞讛 讞讚砖讛<br/>
208
+ 讛砖注专讛: 讛砖注专讛 讞讚砖讛<br/>
209
+ 转砖讜讘讛:
210
+ </p>
211
+ </blockquote>
212
+
213
  """
214
 
215
  EVALUATION_QUEUE_TEXT = """