Commit
·
ffd3951
1
Parent(s):
9f98c5f
Update demo2.py
Browse files
demo2.py
CHANGED
@@ -75,9 +75,8 @@ class Demo2(datasets.GeneratorBasedBuilder):
|
|
75 |
description=_DESCRIPTION,
|
76 |
features=datasets.Features(
|
77 |
{
|
78 |
-
"index": datasets.Value("string"),
|
79 |
"text": datasets.Value("string"),
|
80 |
-
"label": datasets.
|
81 |
}
|
82 |
),
|
83 |
# No default supervised_keys (as we have to pass both question
|
|
|
75 |
description=_DESCRIPTION,
|
76 |
features=datasets.Features(
|
77 |
{
|
|
|
78 |
"text": datasets.Value("string"),
|
79 |
+
"label": datasets.features.ClassLabel(names=['0', '1'])
|
80 |
}
|
81 |
),
|
82 |
# No default supervised_keys (as we have to pass both question
|