Datasets:
update
Browse files- C2Gen.py +3 -6
- data/test.json +0 -0
- dataset_infos.json +1 -0
C2Gen.py
CHANGED
@@ -42,7 +42,7 @@ _TASKS = {
|
|
42 |
|
43 |
|
44 |
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
|
45 |
-
class
|
46 |
"""TODO: Short description of my dataset."""
|
47 |
|
48 |
VERSION = datasets.Version("1.1.0")
|
@@ -66,7 +66,7 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
66 |
features = datasets.Features(
|
67 |
{
|
68 |
"context": datasets.Value("string"),
|
69 |
-
"keywords": datasets.Sequence(feature=
|
70 |
# These are the features of your dataset like images, labels ...
|
71 |
}
|
72 |
)
|
@@ -117,9 +117,6 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
117 |
# Yields examples as (key, example) tuples
|
118 |
yield key, {
|
119 |
"context": row["Context"],
|
120 |
-
"keywords":
|
121 |
-
"a": row["Words"]["a"],
|
122 |
-
"b": row["Words"]["b"],
|
123 |
-
"c": row["Words"]["c"],
|
124 |
}
|
125 |
|
|
|
42 |
|
43 |
|
44 |
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
|
45 |
+
class C2Gen(datasets.GeneratorBasedBuilder):
|
46 |
"""TODO: Short description of my dataset."""
|
47 |
|
48 |
VERSION = datasets.Version("1.1.0")
|
|
|
66 |
features = datasets.Features(
|
67 |
{
|
68 |
"context": datasets.Value("string"),
|
69 |
+
"keywords": datasets.Sequence(feature=[datasets.Value(dtype="string",id=None)], length=-1,id=None),
|
70 |
# These are the features of your dataset like images, labels ...
|
71 |
}
|
72 |
)
|
|
|
117 |
# Yields examples as (key, example) tuples
|
118 |
yield key, {
|
119 |
"context": row["Context"],
|
120 |
+
"keywords": row["Words"],
|
|
|
|
|
|
|
121 |
}
|
122 |
|
data/test.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
dataset_infos.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"c2gen": {"description": "The task of C2Gen is to both generate commonsensical text which include the given words, and also have the generated text adhere to the given context.\n", "citation": "TODO\n", "homepage": "", "license": "cc-by-sa-4.0", "features": {"context": {"dtype": "string", "id": null, "_type": "Value"}, "keywords": {"feature": [{"dtype": "string", "id": null, "_type": "Value"}], "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "c2_gen", "config_name": "c2gen", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 482221, "num_examples": 1483, "dataset_name": "c2_gen"}}, "download_checksums": {"https://huggingface.co/datasets/Severine/C2Gen/resolve/main/data/test.json": {"num_bytes": 396766, "checksum": "9f1c6c770f8583a05f72c80c5a93427e4d30c5d72fc683b8964138c4cbad1d8b"}}, "download_size": 396766, "post_processing_size": null, "dataset_size": 482221, "size_in_bytes": 878987}}
|