Update casum.py
Browse files
casum.py
CHANGED
@@ -4,16 +4,20 @@ import datasets
|
|
4 |
|
5 |
logger = datasets.logging.get_logger(__name__)
|
6 |
|
7 |
-
_CITATION = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
_DESCRIPTION = """
|
12 |
-
"""
|
13 |
-
|
14 |
-
_HOMEPAGE = """
|
15 |
"""
|
16 |
|
|
|
|
|
17 |
_URL = "https://huggingface.co/datasets/projecte-aina/casum/tree/main"
|
18 |
_TRAIN_FILE = "train.jsonl"
|
19 |
_VALID_FILE = "valid.jsonl"
|
@@ -37,7 +41,7 @@ class CaSum(datasets.GeneratorBasedBuilder):
|
|
37 |
CaSumConfig(
|
38 |
name="CaSum",
|
39 |
version=datasets.Version("1.0.0"),
|
40 |
-
description="CaSum dataset"
|
41 |
),
|
42 |
]
|
43 |
|
@@ -47,13 +51,13 @@ class CaSum(datasets.GeneratorBasedBuilder):
|
|
47 |
features=datasets.Features(
|
48 |
{
|
49 |
"summary": datasets.Value("string"),
|
50 |
-
"text": datasets.Value("string")
|
51 |
}
|
52 |
|
53 |
),
|
54 |
supervised_keys=None,
|
55 |
homepage=_HOMEPAGE,
|
56 |
-
citation=_CITATION
|
57 |
)
|
58 |
|
59 |
def _split_generators(self, dl_manager):
|
|
|
4 |
|
5 |
logger = datasets.logging.get_logger(__name__)
|
6 |
|
7 |
+
_CITATION = """@misc{degibert2022sequencetosequence,
|
8 |
+
title={Sequence-to-Sequence Resources for Catalan},
|
9 |
+
author={Ona de Gibert and Ksenia Kharitonova and Blanca Calvo Figueras and Jordi Armengol-Estapé and Maite Melero},
|
10 |
+
year={2022},
|
11 |
+
eprint={2202.06871},
|
12 |
+
archivePrefix={arXiv},
|
13 |
+
primaryClass={cs.CL}
|
14 |
+
}"""
|
15 |
|
16 |
+
_DESCRIPTION = """CaSum is a summarization dataset. It is extracted from a newswire corpus crawled from the Catalan News Agency. The corpus consists of 217,735 instances that are composed by the headline and the body.
|
|
|
|
|
|
|
|
|
|
|
17 |
"""
|
18 |
|
19 |
+
_HOMEPAGE = """https://github.com/TeMU-BSC/seq-to-seq-catalan"""
|
20 |
+
|
21 |
_URL = "https://huggingface.co/datasets/projecte-aina/casum/tree/main"
|
22 |
_TRAIN_FILE = "train.jsonl"
|
23 |
_VALID_FILE = "valid.jsonl"
|
|
|
41 |
CaSumConfig(
|
42 |
name="CaSum",
|
43 |
version=datasets.Version("1.0.0"),
|
44 |
+
description="CaSum dataset"
|
45 |
),
|
46 |
]
|
47 |
|
|
|
51 |
features=datasets.Features(
|
52 |
{
|
53 |
"summary": datasets.Value("string"),
|
54 |
+
"text": datasets.Value("string")
|
55 |
}
|
56 |
|
57 |
),
|
58 |
supervised_keys=None,
|
59 |
homepage=_HOMEPAGE,
|
60 |
+
citation=_CITATION
|
61 |
)
|
62 |
|
63 |
def _split_generators(self, dl_manager):
|