Spaces:
Running
Running
Update Space (evaluate main: e4a27243)
Browse files- cuad.py +5 -1
- requirements.txt +1 -1
cuad.py
CHANGED
@@ -70,11 +70,15 @@ Examples:
|
|
70 |
|
71 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
72 |
class CUAD(evaluate.Metric):
|
73 |
-
|
|
|
|
|
|
|
74 |
return evaluate.MetricInfo(
|
75 |
description=_DESCRIPTION,
|
76 |
citation=_CITATION,
|
77 |
inputs_description=_KWARGS_DESCRIPTION,
|
|
|
78 |
features=datasets.Features(
|
79 |
{
|
80 |
"predictions": {
|
|
|
70 |
|
71 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
72 |
class CUAD(evaluate.Metric):
|
73 |
+
|
74 |
+
ALLOWED_CONFIG_NAMES = ["default"]
|
75 |
+
|
76 |
+
def _info(self, config):
|
77 |
return evaluate.MetricInfo(
|
78 |
description=_DESCRIPTION,
|
79 |
citation=_CITATION,
|
80 |
inputs_description=_KWARGS_DESCRIPTION,
|
81 |
+
config=config,
|
82 |
features=datasets.Features(
|
83 |
{
|
84 |
"predictions": {
|
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
git+https://github.com/huggingface/evaluate@
|
|
|
1 |
+
git+https://github.com/huggingface/evaluate@e4a2724377909fe2aeb4357e3971e5a569673b39
|