Hieu Nguyen
commited on
Commit
·
3cfc06d
1
Parent(s):
6aeb37f
revert back to sample code
Browse files- deep-research.py +6 -23
deep-research.py
CHANGED
@@ -82,30 +82,13 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
82 |
# if self.config.name == "train": # This is the name of the configuration selected in BUILDER_CONFIGS above
|
83 |
features = datasets.Features(
|
84 |
{
|
85 |
-
"
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
"qas": datasets.Sequence(
|
92 |
-
{
|
93 |
-
"answers": datasets.Sequence(
|
94 |
-
{
|
95 |
-
"answer_start": datasets.Value("int8"),
|
96 |
-
"text": datasets.Value("string")
|
97 |
-
},
|
98 |
-
),
|
99 |
-
"question": datasets.Value("string"),
|
100 |
-
"id": datasets.Value("string")
|
101 |
-
}
|
102 |
-
)
|
103 |
-
}
|
104 |
-
)
|
105 |
-
}
|
106 |
),
|
107 |
-
"version": datasets.Value("string")
|
108 |
-
# These are the features of your dataset like images, labels ...
|
109 |
}
|
110 |
)
|
111 |
return datasets.DatasetInfo(
|
|
|
82 |
# if self.config.name == "train": # This is the name of the configuration selected in BUILDER_CONFIGS above
|
83 |
features = datasets.Features(
|
84 |
{
|
85 |
+
"id": datasets.Value("string"),
|
86 |
+
"title": datasets.Value("string"),
|
87 |
+
"context": datasets.Value("string"),
|
88 |
+
"question": datasets.Value("string"),
|
89 |
+
"answers": datasets.features.Sequence(
|
90 |
+
{"text": datasets.Value("string"), "answer_start": datasets.Value("int32"),}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
),
|
|
|
|
|
92 |
}
|
93 |
)
|
94 |
return datasets.DatasetInfo(
|