Upload cod.py with huggingface_hub
Browse files
cod.py
CHANGED
|
@@ -4,8 +4,8 @@ from typing import Dict, List, Tuple
|
|
| 4 |
|
| 5 |
import datasets
|
| 6 |
|
| 7 |
-
from
|
| 8 |
-
from
|
| 9 |
|
| 10 |
_CITATION = """\
|
| 11 |
@article{majewska2022cross,
|
|
@@ -43,17 +43,17 @@ _SUPPORTED_TASKS = [Tasks.DIALOGUE_SYSTEM]
|
|
| 43 |
|
| 44 |
_SOURCE_VERSION = "1.0.0"
|
| 45 |
|
| 46 |
-
|
| 47 |
|
| 48 |
|
| 49 |
class NewDataset(datasets.GeneratorBasedBuilder):
|
| 50 |
"""Cross-lingual Outline-based Dialogue (COD) is a dataset comprises manually generated, localised, and cross-lingually aligned Task-Oriented-Dialogue (TOD) data which served as the source of dialogue prompts."""
|
| 51 |
|
| 52 |
SOURCE_VERSION = datasets.Version(_SOURCE_VERSION)
|
| 53 |
-
|
| 54 |
|
| 55 |
BUILDER_CONFIGS = [
|
| 56 |
-
|
| 57 |
name="cod_source",
|
| 58 |
version=SOURCE_VERSION,
|
| 59 |
description="Cross-lingual Outline-based Dialogue (COD) source schema",
|
|
|
|
| 4 |
|
| 5 |
import datasets
|
| 6 |
|
| 7 |
+
from seacrowd.utils.configs import SEACrowdConfig
|
| 8 |
+
from seacrowd.utils.constants import Tasks
|
| 9 |
|
| 10 |
_CITATION = """\
|
| 11 |
@article{majewska2022cross,
|
|
|
|
| 43 |
|
| 44 |
_SOURCE_VERSION = "1.0.0"
|
| 45 |
|
| 46 |
+
_SEACROWD_VERSION = "2024.06.20"
|
| 47 |
|
| 48 |
|
| 49 |
class NewDataset(datasets.GeneratorBasedBuilder):
|
| 50 |
"""Cross-lingual Outline-based Dialogue (COD) is a dataset comprises manually generated, localised, and cross-lingually aligned Task-Oriented-Dialogue (TOD) data which served as the source of dialogue prompts."""
|
| 51 |
|
| 52 |
SOURCE_VERSION = datasets.Version(_SOURCE_VERSION)
|
| 53 |
+
SEACROWD_VERSION = datasets.Version(_SEACROWD_VERSION)
|
| 54 |
|
| 55 |
BUILDER_CONFIGS = [
|
| 56 |
+
SEACrowdConfig(
|
| 57 |
name="cod_source",
|
| 58 |
version=SOURCE_VERSION,
|
| 59 |
description="Cross-lingual Outline-based Dialogue (COD) source schema",
|