Spaces:
Sleeping
Sleeping
DoctorSlimm
commited on
Commit
•
96a4701
1
Parent(s):
f99f2a0
remove caching
Browse files- kaushiks_criteria.py +5 -1
kaushiks_criteria.py
CHANGED
@@ -155,7 +155,11 @@ class kaushiks_criteria(evaluate.Metric):
|
|
155 |
pred_ds = Dataset.from_dict({'text': predictions})
|
156 |
refs_ds = Dataset.from_dict({'text': references})
|
157 |
proc_ds = DatasetDict({'predictions': pred_ds, 'references': refs_ds})
|
158 |
-
proc_ds = proc_ds.map(
|
|
|
|
|
|
|
|
|
159 |
|
160 |
# compare headers
|
161 |
exact_match = evaluate.load('exact_match')
|
|
|
155 |
pred_ds = Dataset.from_dict({'text': predictions})
|
156 |
refs_ds = Dataset.from_dict({'text': references})
|
157 |
proc_ds = DatasetDict({'predictions': pred_ds, 'references': refs_ds})
|
158 |
+
proc_ds = proc_ds.map(
|
159 |
+
self.normalize_fn,
|
160 |
+
num_proc=num_proc,
|
161 |
+
load_from_cache_file=False
|
162 |
+
)
|
163 |
|
164 |
# compare headers
|
165 |
exact_match = evaluate.load('exact_match')
|