Spaces:
Running
Running
Update Space (evaluate main: e4a27243)
Browse files- bleurt.py +4 -1
- requirements.txt +1 -1
bleurt.py
CHANGED
@@ -78,13 +78,16 @@ CHECKPOINT_URLS = {
|
|
78 |
|
79 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
80 |
class BLEURT(evaluate.Metric):
|
81 |
-
|
|
|
|
|
82 |
|
83 |
return evaluate.MetricInfo(
|
84 |
description=_DESCRIPTION,
|
85 |
citation=_CITATION,
|
86 |
homepage="https://github.com/google-research/bleurt",
|
87 |
inputs_description=_KWARGS_DESCRIPTION,
|
|
|
88 |
features=datasets.Features(
|
89 |
{
|
90 |
"predictions": datasets.Value("string", id="sequence"),
|
|
|
78 |
|
79 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
80 |
class BLEURT(evaluate.Metric):
|
81 |
+
ALLOWED_CONFIG_NAMES = ["default"] + list(CHECKPOINT_URLS.keys())
|
82 |
+
|
83 |
+
def _info(self, config):
|
84 |
|
85 |
return evaluate.MetricInfo(
|
86 |
description=_DESCRIPTION,
|
87 |
citation=_CITATION,
|
88 |
homepage="https://github.com/google-research/bleurt",
|
89 |
inputs_description=_KWARGS_DESCRIPTION,
|
90 |
+
config=config,
|
91 |
features=datasets.Features(
|
92 |
{
|
93 |
"predictions": datasets.Value("string", id="sequence"),
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
git+https://github.com/huggingface/evaluate@
|
2 |
git+https://github.com/google-research/bleurt.git
|
|
|
1 |
+
git+https://github.com/huggingface/evaluate@e4a2724377909fe2aeb4357e3971e5a569673b39
|
2 |
git+https://github.com/google-research/bleurt.git
|