Datasets:
Adding Tasks 1, 3, 4, 7
Browse files- openpi_v2.py +22 -22
openpi_v2.py
CHANGED
|
@@ -108,16 +108,16 @@ class OpenpiV2(datasets.GeneratorBasedBuilder):
|
|
| 108 |
url = _HOMEPAGE
|
| 109 |
),
|
| 110 |
OpenpiConfig(
|
| 111 |
-
name = "Task 1"
|
| 112 |
-
description =
|
| 113 |
"""\
|
| 114 |
Given paragraph (e.g., with 5 steps), identify entities that change
|
| 115 |
(challenge: implicit entities, some explicit entities that don’t change)."""
|
| 116 |
),
|
| 117 |
-
features =
|
| 118 |
-
"steps": [datasets.Value("string")]
|
| 119 |
"entity_changes": [datasets.Value("string")]
|
| 120 |
-
})
|
| 121 |
data_url = _URLS,
|
| 122 |
citation = textwrap.dedent(
|
| 123 |
"""\
|
|
@@ -131,16 +131,16 @@ class OpenpiV2(datasets.GeneratorBasedBuilder):
|
|
| 131 |
url = _HOMEPAGE
|
| 132 |
),
|
| 133 |
OpenpiConfig(
|
| 134 |
-
name = "Task 3"
|
| 135 |
-
description =
|
| 136 |
"""\
|
| 137 |
Given paragraph (e.g., with 5 steps), identify the attributes of entity that change
|
| 138 |
(challenge: implicit entities, attributes & many combinations)."""
|
| 139 |
),
|
| 140 |
-
features =
|
| 141 |
-
"steps": [datasets.Value("string")]
|
| 142 |
"attr_entity_changes": [datasets.Value("string")]
|
| 143 |
-
})
|
| 144 |
data_url = _URLS,
|
| 145 |
citation = textwrap.dedent(
|
| 146 |
"""\
|
|
@@ -154,17 +154,17 @@ class OpenpiV2(datasets.GeneratorBasedBuilder):
|
|
| 154 |
url = _HOMEPAGE
|
| 155 |
),
|
| 156 |
OpenpiConfig(
|
| 157 |
-
name = "Task 4"
|
| 158 |
-
description =
|
| 159 |
"""\
|
| 160 |
Task 4: Given paragraph & an entity, identify the sequence of attribute value changes
|
| 161 |
(challenge: implicit attributes)."""
|
| 162 |
),
|
| 163 |
-
features =
|
| 164 |
-
"steps": [datasets.Value("string")]
|
| 165 |
-
"entity": datasets.Value("string")
|
| 166 |
"attribute_changes": [datasets.Value("string")]
|
| 167 |
-
})
|
| 168 |
data_url = _URLS,
|
| 169 |
citation = textwrap.dedent(
|
| 170 |
"""\
|
|
@@ -178,17 +178,17 @@ class OpenpiV2(datasets.GeneratorBasedBuilder):
|
|
| 178 |
url = _HOMEPAGE
|
| 179 |
),
|
| 180 |
OpenpiConfig(
|
| 181 |
-
name = "Task 7"
|
| 182 |
-
description =
|
| 183 |
"""\
|
| 184 |
Task 7: Given image url, identify the visual attributes of entity and
|
| 185 |
non-visual attributes of entity that change."""
|
| 186 |
),
|
| 187 |
-
features =
|
| 188 |
-
"image_url": datasets.Value("string")
|
| 189 |
-
"visual_attr": [datasets.Value("string")]
|
| 190 |
"non_visual_attr": [datasets.Value("string")]
|
| 191 |
-
})
|
| 192 |
data_url = _URLS,
|
| 193 |
citation = textwrap.dedent(
|
| 194 |
"""\
|
|
|
|
| 108 |
url = _HOMEPAGE
|
| 109 |
),
|
| 110 |
OpenpiConfig(
|
| 111 |
+
name = "Task 1",
|
| 112 |
+
description = textwrap.dedent(
|
| 113 |
"""\
|
| 114 |
Given paragraph (e.g., with 5 steps), identify entities that change
|
| 115 |
(challenge: implicit entities, some explicit entities that don’t change)."""
|
| 116 |
),
|
| 117 |
+
features = datasets.Features({
|
| 118 |
+
"steps": [datasets.Value("string")],
|
| 119 |
"entity_changes": [datasets.Value("string")]
|
| 120 |
+
}),
|
| 121 |
data_url = _URLS,
|
| 122 |
citation = textwrap.dedent(
|
| 123 |
"""\
|
|
|
|
| 131 |
url = _HOMEPAGE
|
| 132 |
),
|
| 133 |
OpenpiConfig(
|
| 134 |
+
name = "Task 3",
|
| 135 |
+
description = textwrap.dedent(
|
| 136 |
"""\
|
| 137 |
Given paragraph (e.g., with 5 steps), identify the attributes of entity that change
|
| 138 |
(challenge: implicit entities, attributes & many combinations)."""
|
| 139 |
),
|
| 140 |
+
features = datasets.Features({
|
| 141 |
+
"steps": [datasets.Value("string")],
|
| 142 |
"attr_entity_changes": [datasets.Value("string")]
|
| 143 |
+
}),
|
| 144 |
data_url = _URLS,
|
| 145 |
citation = textwrap.dedent(
|
| 146 |
"""\
|
|
|
|
| 154 |
url = _HOMEPAGE
|
| 155 |
),
|
| 156 |
OpenpiConfig(
|
| 157 |
+
name = "Task 4",
|
| 158 |
+
description = textwrap.dedent(
|
| 159 |
"""\
|
| 160 |
Task 4: Given paragraph & an entity, identify the sequence of attribute value changes
|
| 161 |
(challenge: implicit attributes)."""
|
| 162 |
),
|
| 163 |
+
features = datasets.Features({
|
| 164 |
+
"steps": [datasets.Value("string")],
|
| 165 |
+
"entity": datasets.Value("string"),
|
| 166 |
"attribute_changes": [datasets.Value("string")]
|
| 167 |
+
}),
|
| 168 |
data_url = _URLS,
|
| 169 |
citation = textwrap.dedent(
|
| 170 |
"""\
|
|
|
|
| 178 |
url = _HOMEPAGE
|
| 179 |
),
|
| 180 |
OpenpiConfig(
|
| 181 |
+
name = "Task 7",
|
| 182 |
+
description = textwrap.dedent(
|
| 183 |
"""\
|
| 184 |
Task 7: Given image url, identify the visual attributes of entity and
|
| 185 |
non-visual attributes of entity that change."""
|
| 186 |
),
|
| 187 |
+
features = datasets.Features({
|
| 188 |
+
"image_url": datasets.Value("string"),
|
| 189 |
+
"visual_attr": [datasets.Value("string")],
|
| 190 |
"non_visual_attr": [datasets.Value("string")]
|
| 191 |
+
}),
|
| 192 |
data_url = _URLS,
|
| 193 |
citation = textwrap.dedent(
|
| 194 |
"""\
|