Spaces:
Runtime error
Runtime error
Update oppo_refuse_match.py
Browse files- oppo_refuse_match.py +3 -1
oppo_refuse_match.py
CHANGED
@@ -28,6 +28,7 @@ Returns the rate at which the input predicted strings exactly match the refuse l
|
|
28 |
_KWARGS_DESCRIPTION = """
|
29 |
Args:
|
30 |
predictions: List of predicted texts. -> [prediction] only one
|
|
|
31 |
|
32 |
Returns:
|
33 |
exact_match: Dictionary containing oppo_refuse_match rate. Possible values are 0 or 1
|
@@ -56,7 +57,8 @@ class OppoRefuseMatch(evaluate.Metric):
|
|
56 |
|
57 |
def _compute(
|
58 |
self,
|
59 |
-
predictions
|
|
|
60 |
):
|
61 |
patterns = [
|
62 |
r"There is no", r"no", r"non-existent", r"not a", r"none"
|
|
|
28 |
_KWARGS_DESCRIPTION = """
|
29 |
Args:
|
30 |
predictions: List of predicted texts. -> [prediction] only one
|
31 |
+
references: not use
|
32 |
|
33 |
Returns:
|
34 |
exact_match: Dictionary containing oppo_refuse_match rate. Possible values are 0 or 1
|
|
|
57 |
|
58 |
def _compute(
|
59 |
self,
|
60 |
+
predictions,
|
61 |
+
references
|
62 |
):
|
63 |
patterns = [
|
64 |
r"There is no", r"no", r"non-existent", r"not a", r"none"
|