herbievore
commited on
Commit
•
f2e255e
1
Parent(s):
bb59f53
Reordering labels
Browse files- ctkfacts_nli.py +4 -4
ctkfacts_nli.py
CHANGED
@@ -6,7 +6,7 @@ import json
|
|
6 |
|
7 |
from datasets.info import DatasetInfo
|
8 |
|
9 |
-
__VERSION = "0.0.
|
10 |
|
11 |
_URL= "data/"
|
12 |
|
@@ -24,7 +24,7 @@ _CITATION = """\
|
|
24 |
todo
|
25 |
"""
|
26 |
|
27 |
-
|
28 |
class CtkfactsNli(datasets.GeneratorBasedBuilder):
|
29 |
def _info(self):
|
30 |
return datasets.DatasetInfo(
|
@@ -32,7 +32,7 @@ class CtkfactsNli(datasets.GeneratorBasedBuilder):
|
|
32 |
features=datasets.Features(
|
33 |
{
|
34 |
"id": datasets.Value("int32"),
|
35 |
-
"label": datasets.ClassLabel(names=["
|
36 |
# datasets.features.Sequence({"text": datasets.Value("string"),"answer_start": datasets.Value("int32"),})
|
37 |
"evidence": datasets.Value("string"),
|
38 |
"claim": datasets.Value("string"),
|
@@ -41,7 +41,7 @@ class CtkfactsNli(datasets.GeneratorBasedBuilder):
|
|
41 |
# No default supervised_keys (as we have to pass both question
|
42 |
# and context as input).
|
43 |
supervised_keys=None,
|
44 |
-
version=
|
45 |
homepage="https://fcheck.fel.cvut.cz/dataset/",
|
46 |
citation=_CITATION,
|
47 |
)
|
|
|
6 |
|
7 |
from datasets.info import DatasetInfo
|
8 |
|
9 |
+
__VERSION = "0.0.3"
|
10 |
|
11 |
_URL= "data/"
|
12 |
|
|
|
24 |
todo
|
25 |
"""
|
26 |
|
27 |
+
datasets.utils.version.Version
|
28 |
class CtkfactsNli(datasets.GeneratorBasedBuilder):
|
29 |
def _info(self):
|
30 |
return datasets.DatasetInfo(
|
|
|
32 |
features=datasets.Features(
|
33 |
{
|
34 |
"id": datasets.Value("int32"),
|
35 |
+
"label": datasets.ClassLabel(names=["REFUTES", "NOT ENOUGH INFO", "SUPPORTS"]),
|
36 |
# datasets.features.Sequence({"text": datasets.Value("string"),"answer_start": datasets.Value("int32"),})
|
37 |
"evidence": datasets.Value("string"),
|
38 |
"claim": datasets.Value("string"),
|
|
|
41 |
# No default supervised_keys (as we have to pass both question
|
42 |
# and context as input).
|
43 |
supervised_keys=None,
|
44 |
+
version=__VERSION,
|
45 |
homepage="https://fcheck.fel.cvut.cz/dataset/",
|
46 |
citation=_CITATION,
|
47 |
)
|