Hieu Nguyen
commited on
Commit
·
ec0f4ea
1
Parent(s):
f49cbaf
Deployed dataset on MinIO
Browse files- deep-research.py +25 -8
deep-research.py
CHANGED
|
@@ -48,8 +48,8 @@ _LICENSE = ""
|
|
| 48 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
| 49 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
| 50 |
_URLS = {
|
| 51 |
-
"train": "
|
| 52 |
-
"dev": "
|
| 53 |
}
|
| 54 |
|
| 55 |
|
|
@@ -82,13 +82,30 @@ 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 |
),
|
|
|
|
|
|
|
| 92 |
}
|
| 93 |
)
|
| 94 |
return datasets.DatasetInfo(
|
|
|
|
| 48 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
| 49 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
| 50 |
_URLS = {
|
| 51 |
+
"train": "http://52.172.255.53:9000/yuangang/train-v1.1.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minioadmin%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T004414Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=4d4781f20c3a174c1bce60ce1a6b8f452519ee5e5036d57ee0840018040667d3",
|
| 52 |
+
"dev": "http://52.172.255.53:9000/yuangang/dev-v1.1.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minioadmin%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T004709Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=7f17bd42a64d5b29e694a1816758bd8b4d28639c97e3874a8ebfc51757b750b0"
|
| 53 |
}
|
| 54 |
|
| 55 |
|
|
|
|
| 82 |
# if self.config.name == "train": # This is the name of the configuration selected in BUILDER_CONFIGS above
|
| 83 |
features = datasets.Features(
|
| 84 |
{
|
| 85 |
+
"data": datasets.Sequence(
|
| 86 |
+
{
|
| 87 |
+
"title": datasets.Value("string"),
|
| 88 |
+
"paragraphs": datasets.Sequence(
|
| 89 |
+
{
|
| 90 |
+
"context": datasets.Value("string"),
|
| 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(
|