Datasets:
Tasks:
Table to Text
Modalities:
Text
Languages:
English
Size:
10K - 100K
Tags:
data-to-text
License:
Sebastian Gehrmann
commited on
Commit
·
db55aee
1
Parent(s):
9505249
- web_nlg.py +2 -2
web_nlg.py
CHANGED
|
@@ -141,7 +141,7 @@ class WebNLG(datasets.GeneratorBasedBuilder):
|
|
| 141 |
id_ += 1
|
| 142 |
yield id_, {
|
| 143 |
"gem_id": f"web_nlg_{self.config.name}-{split}-{id_}",
|
| 144 |
-
"gem_parent_id": f"{self.config.name}-{split}-{id_}",
|
| 145 |
"input": example["input"],
|
| 146 |
"target": target,
|
| 147 |
"references": []
|
|
@@ -154,7 +154,7 @@ class WebNLG(datasets.GeneratorBasedBuilder):
|
|
| 154 |
id_ += 1
|
| 155 |
yield id_, {
|
| 156 |
"gem_id": f"web_nlg_{self.config.name}-{split}-{id_}",
|
| 157 |
-
"gem_parent_id": f"{self.config.name}-{split}-{id_}",
|
| 158 |
"input": example["input"],
|
| 159 |
"target": example["target"][0]
|
| 160 |
if len(example["target"]) > 0
|
|
|
|
| 141 |
id_ += 1
|
| 142 |
yield id_, {
|
| 143 |
"gem_id": f"web_nlg_{self.config.name}-{split}-{id_}",
|
| 144 |
+
"gem_parent_id": f"web_nlg_{self.config.name}-{split}-{id_}",
|
| 145 |
"input": example["input"],
|
| 146 |
"target": target,
|
| 147 |
"references": []
|
|
|
|
| 154 |
id_ += 1
|
| 155 |
yield id_, {
|
| 156 |
"gem_id": f"web_nlg_{self.config.name}-{split}-{id_}",
|
| 157 |
+
"gem_parent_id": f"web_nlg_{self.config.name}-{split}-{id_}",
|
| 158 |
"input": example["input"],
|
| 159 |
"target": example["target"][0]
|
| 160 |
if len(example["target"]) > 0
|