Update GitTables.py
Browse files- GitTables.py +3 -8
GitTables.py
CHANGED
@@ -101,12 +101,7 @@ class GitTables(datasets.GeneratorBasedBuilder):
|
|
101 |
"target_column": datasets.Value("string"),
|
102 |
"annotation_id": datasets.Value("string"),
|
103 |
"annotation_label": datasets.Value("string"),
|
104 |
-
|
105 |
-
"table_text": datasets.Sequence(
|
106 |
-
{
|
107 |
-
f"col{i}": datasets.Value("string") for i in range(50)
|
108 |
-
}
|
109 |
-
),
|
110 |
"column_text": datasets.Value("string")
|
111 |
}
|
112 |
)
|
@@ -165,7 +160,7 @@ class GitTables(datasets.GeneratorBasedBuilder):
|
|
165 |
"column_text": data["column_text"],
|
166 |
"annotation_id": data["annotation_id"],
|
167 |
"annotation_label": data["annotation_label"],
|
168 |
-
"table_text": table_text
|
169 |
}
|
170 |
else:
|
171 |
table_text = {}
|
@@ -178,5 +173,5 @@ class GitTables(datasets.GeneratorBasedBuilder):
|
|
178 |
"column_text": data["column_text"],
|
179 |
"annotation_id": data["annotation_id"],
|
180 |
"annotation_label": data["annotation_label"],
|
181 |
-
"table_text": table_text,
|
182 |
}
|
|
|
101 |
"target_column": datasets.Value("string"),
|
102 |
"annotation_id": datasets.Value("string"),
|
103 |
"annotation_label": datasets.Value("string"),
|
104 |
+
"table_text": datasets.Value("string"),
|
|
|
|
|
|
|
|
|
|
|
105 |
"column_text": datasets.Value("string")
|
106 |
}
|
107 |
)
|
|
|
160 |
"column_text": data["column_text"],
|
161 |
"annotation_id": data["annotation_id"],
|
162 |
"annotation_label": data["annotation_label"],
|
163 |
+
"table_text": str(table_text)
|
164 |
}
|
165 |
else:
|
166 |
table_text = {}
|
|
|
173 |
"column_text": data["column_text"],
|
174 |
"annotation_id": data["annotation_id"],
|
175 |
"annotation_label": data["annotation_label"],
|
176 |
+
"table_text": str(table_text),
|
177 |
}
|