Update utils.py
Browse files
utils.py
CHANGED
@@ -22,6 +22,8 @@ def answer_cleansing_zero_shot(dataset, pred, must_choice=False):
|
|
22 |
elif dataset == "symbolic-letter":
|
23 |
pred = re.sub("\"|\'|\n|\.|\s", "", pred)
|
24 |
pred = [pred]
|
|
|
|
|
25 |
else:
|
26 |
raise ValueError("dataset is not properly defined ...")
|
27 |
|
|
|
22 |
elif dataset == "symbolic-letter":
|
23 |
pred = re.sub("\"|\'|\n|\.|\s", "", pred)
|
24 |
pred = [pred]
|
25 |
+
elif dataset == "UNDEFINED":
|
26 |
+
pred = pred
|
27 |
else:
|
28 |
raise ValueError("dataset is not properly defined ...")
|
29 |
|