submit app
Browse files- distinct.py +2 -2
distinct.py
CHANGED
@@ -72,7 +72,7 @@ Examples:
|
|
72 |
Examples should be written in doctest format, and should illustrate how
|
73 |
to use the function.
|
74 |
|
75 |
-
>>> my_new_module = evaluate.load("distinct")
|
76 |
>>> results = my_new_module.compute(references=["Hi.", "I'm sorry to hear that", "I don't know"], vocab_size=50257)
|
77 |
>>> print(results)
|
78 |
|
@@ -104,7 +104,7 @@ class distinct(evaluate.Measurement):
|
|
104 |
inputs_description=_KWARGS_DESCRIPTION,
|
105 |
# This defines the format of each prediction and reference
|
106 |
features=datasets.Features({
|
107 |
-
'predictions': datasets.
|
108 |
}),
|
109 |
# Homepage of the module for documentation
|
110 |
homepage="https://huggingface.co/spaces/lsy641/distinct",
|
|
|
72 |
Examples should be written in doctest format, and should illustrate how
|
73 |
to use the function.
|
74 |
|
75 |
+
>>> my_new_module = evaluate.load("lsy641/distinct")
|
76 |
>>> results = my_new_module.compute(references=["Hi.", "I'm sorry to hear that", "I don't know"], vocab_size=50257)
|
77 |
>>> print(results)
|
78 |
|
|
|
104 |
inputs_description=_KWARGS_DESCRIPTION,
|
105 |
# This defines the format of each prediction and reference
|
106 |
features=datasets.Features({
|
107 |
+
'predictions': datasets.Value('string')
|
108 |
}),
|
109 |
# Homepage of the module for documentation
|
110 |
homepage="https://huggingface.co/spaces/lsy641/distinct",
|