Datasets:
siyue
commited on
Commit
•
be9549c
1
Parent(s):
b5cba51
dict
Browse files
squall.py
CHANGED
@@ -155,7 +155,7 @@ class Squall(datasets.GeneratorBasedBuilder):
|
|
155 |
squall_full = filepath["squall"]
|
156 |
dev_ids = filepath["dev-" + self.config.name]
|
157 |
test = filepath["wtq-test"]
|
158 |
-
|
159 |
# transform the original squall data structure (list of things) to dict
|
160 |
def transform(sample, sample_key, keys):
|
161 |
cols = {}
|
@@ -298,12 +298,12 @@ class Squall(datasets.GeneratorBasedBuilder):
|
|
298 |
"nl": sample["nl"],
|
299 |
"nl_pos": sample["nl_pos"],
|
300 |
"nl_ner": sample["nl_ner"],
|
301 |
-
"nl_ralign":
|
302 |
"nl_incolumns": sample["nl_incolumns"],
|
303 |
"nl_incells": sample["nl_incells"],
|
304 |
"columns_innl": sample["columns_innl"],
|
305 |
"tgt": '',
|
306 |
-
"sql":
|
307 |
-
"align":
|
308 |
}
|
309 |
idx += 1
|
|
|
155 |
squall_full = filepath["squall"]
|
156 |
dev_ids = filepath["dev-" + self.config.name]
|
157 |
test = filepath["wtq-test"]
|
158 |
+
|
159 |
# transform the original squall data structure (list of things) to dict
|
160 |
def transform(sample, sample_key, keys):
|
161 |
cols = {}
|
|
|
298 |
"nl": sample["nl"],
|
299 |
"nl_pos": sample["nl_pos"],
|
300 |
"nl_ner": sample["nl_ner"],
|
301 |
+
"nl_ralign": {},
|
302 |
"nl_incolumns": sample["nl_incolumns"],
|
303 |
"nl_incells": sample["nl_incells"],
|
304 |
"columns_innl": sample["columns_innl"],
|
305 |
"tgt": '',
|
306 |
+
"sql": {},
|
307 |
+
"align": {}
|
308 |
}
|
309 |
idx += 1
|