Spaces:
Sleeping
Sleeping
DoctorSlimm
commited on
Commit
·
0e2bcc5
1
Parent(s):
c0d138a
fuck charcut fuck accuracy
Browse files- bangalore_score.py +5 -5
bangalore_score.py
CHANGED
@@ -96,7 +96,7 @@ class Bangalore_Score(evaluate.Metric):
|
|
96 |
evaluate.load('bleu')
|
97 |
evaluate.load('rouge')
|
98 |
evaluate.load('ncoop57/levenshtein_distance')
|
99 |
-
evaluate.load('BramVanroy/CharCut')
|
100 |
evaluate.load('exact_match')
|
101 |
# evaluate.load('accuracy')
|
102 |
pass
|
@@ -180,9 +180,9 @@ class Bangalore_Score(evaluate.Metric):
|
|
180 |
)['exact_match']
|
181 |
|
182 |
# charcut (data)
|
183 |
-
charcut = evaluate.load('BramVanroy/CharCut').compute(
|
184 |
-
|
185 |
-
)['charcut_mt']
|
186 |
|
187 |
# bleu (data)
|
188 |
bleu = evaluate.load('bleu').compute(
|
@@ -208,7 +208,7 @@ class Bangalore_Score(evaluate.Metric):
|
|
208 |
|
209 |
return {
|
210 |
'exact_match_headers': exact_match_headers,
|
211 |
-
'charcut': charcut,
|
212 |
'bleu': bleu,
|
213 |
'rougeL': rougeL,
|
214 |
'levenstein_distance': levenstein_distance,
|
|
|
96 |
evaluate.load('bleu')
|
97 |
evaluate.load('rouge')
|
98 |
evaluate.load('ncoop57/levenshtein_distance')
|
99 |
+
# evaluate.load('BramVanroy/CharCut')
|
100 |
evaluate.load('exact_match')
|
101 |
# evaluate.load('accuracy')
|
102 |
pass
|
|
|
180 |
)['exact_match']
|
181 |
|
182 |
# charcut (data)
|
183 |
+
# charcut = evaluate.load('BramVanroy/CharCut').compute(
|
184 |
+
# predictions=proc_ds['predictions']['rows_text'], references=proc_ds['references']['rows_text']
|
185 |
+
# )['charcut_mt']
|
186 |
|
187 |
# bleu (data)
|
188 |
bleu = evaluate.load('bleu').compute(
|
|
|
208 |
|
209 |
return {
|
210 |
'exact_match_headers': exact_match_headers,
|
211 |
+
# 'charcut': charcut,
|
212 |
'bleu': bleu,
|
213 |
'rougeL': rougeL,
|
214 |
'levenstein_distance': levenstein_distance,
|