Update test_ldkp.py
Browse files- test_ldkp.py +5 -5
test_ldkp.py
CHANGED
@@ -62,10 +62,10 @@ class TestLDKP(datasets.GeneratorBasedBuilder):
|
|
62 |
if self.config.name == "ldkp": # This is the name of the configuration selected in BUILDER_CONFIGS above
|
63 |
features = datasets.Features(
|
64 |
{
|
65 |
-
|
66 |
-
|
67 |
-
"text": datasets.Value("string"),
|
68 |
-
"BIO_tags": datasets.Value("string")
|
69 |
# "answer": datasets.Value("string")
|
70 |
# These are the features of your dataset like images, labels ...
|
71 |
}
|
@@ -83,7 +83,7 @@ class TestLDKP(datasets.GeneratorBasedBuilder):
|
|
83 |
# This is the description that will appear on the datasets page.
|
84 |
description=_DESCRIPTION,
|
85 |
# This defines the different columns of the dataset and their types
|
86 |
-
|
87 |
# If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and
|
88 |
# specify them. They'll be used if as_supervised=True in builder.as_dataset.
|
89 |
# supervised_keys=("sentence", "label"),
|
|
|
62 |
if self.config.name == "ldkp": # This is the name of the configuration selected in BUILDER_CONFIGS above
|
63 |
features = datasets.Features(
|
64 |
{
|
65 |
+
"text": list,
|
66 |
+
"BIO_tags": list
|
67 |
+
#"text": datasets.Value("string"),
|
68 |
+
#"BIO_tags": datasets.Value("string")
|
69 |
# "answer": datasets.Value("string")
|
70 |
# These are the features of your dataset like images, labels ...
|
71 |
}
|
|
|
83 |
# This is the description that will appear on the datasets page.
|
84 |
description=_DESCRIPTION,
|
85 |
# This defines the different columns of the dataset and their types
|
86 |
+
features=features, # Here we define them above because they are different between the two configurations
|
87 |
# If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and
|
88 |
# specify them. They'll be used if as_supervised=True in builder.as_dataset.
|
89 |
# supervised_keys=("sentence", "label"),
|