i have no idea how this feature thing works
Browse files- unigram.py +2 -2
unigram.py
CHANGED
@@ -67,8 +67,8 @@ class unigram(evaluate.Metric):
|
|
67 |
inputs_description=_KWARGS_DESCRIPTION,
|
68 |
# This defines the format of each prediction and reference
|
69 |
features=datasets.Features({
|
70 |
-
'predictions': datasets.Sequence(datasets.
|
71 |
-
'references': datasets.Sequence(datasets.
|
72 |
}),
|
73 |
# Homepage of the module for documentation
|
74 |
homepage="http://module.homepage",
|
|
|
67 |
inputs_description=_KWARGS_DESCRIPTION,
|
68 |
# This defines the format of each prediction and reference
|
69 |
features=datasets.Features({
|
70 |
+
'predictions': datasets.Sequence(datasets.Value('int64')),
|
71 |
+
'references': datasets.Sequence(datasets.Value('int64')),
|
72 |
}),
|
73 |
# Homepage of the module for documentation
|
74 |
homepage="http://module.homepage",
|