Update gazeta.py
Browse files
gazeta.py
CHANGED
@@ -15,7 +15,6 @@
|
|
15 |
"""Dataset for automatic summarization of Russian news"""
|
16 |
|
17 |
|
18 |
-
import csv
|
19 |
import json
|
20 |
import os
|
21 |
|
@@ -40,15 +39,16 @@ _DESCRIPTION = "Dataset for automatic summarization of Russian news"
|
|
40 |
|
41 |
_HOMEPAGE = "https://github.com/IlyaGusev/gazeta"
|
42 |
|
43 |
-
_LICENSE = ""
|
44 |
-
|
45 |
_URLs = {
|
46 |
"default": "https://github.com/IlyaGusev/gazeta/releases/download/1.0/gazeta_jsonl.tar.gz",
|
47 |
}
|
48 |
|
|
|
|
|
|
|
49 |
|
50 |
class GazetaDataset(datasets.GeneratorBasedBuilder):
|
51 |
-
"""Dataset
|
52 |
|
53 |
VERSION = datasets.Version("1.0.0")
|
54 |
|
@@ -61,8 +61,8 @@ class GazetaDataset(datasets.GeneratorBasedBuilder):
|
|
61 |
def _info(self):
|
62 |
features = datasets.Features(
|
63 |
{
|
64 |
-
|
65 |
-
|
66 |
"title": datasets.Value("string"),
|
67 |
"date": datasets.Value("string"),
|
68 |
"url": datasets.Value("string")
|
@@ -71,9 +71,8 @@ class GazetaDataset(datasets.GeneratorBasedBuilder):
|
|
71 |
return datasets.DatasetInfo(
|
72 |
description=_DESCRIPTION,
|
73 |
features=features,
|
74 |
-
supervised_keys=
|
75 |
homepage=_HOMEPAGE,
|
76 |
-
license=_LICENSE,
|
77 |
citation=_CITATION,
|
78 |
)
|
79 |
|
|
|
15 |
"""Dataset for automatic summarization of Russian news"""
|
16 |
|
17 |
|
|
|
18 |
import json
|
19 |
import os
|
20 |
|
|
|
39 |
|
40 |
_HOMEPAGE = "https://github.com/IlyaGusev/gazeta"
|
41 |
|
|
|
|
|
42 |
_URLs = {
|
43 |
"default": "https://github.com/IlyaGusev/gazeta/releases/download/1.0/gazeta_jsonl.tar.gz",
|
44 |
}
|
45 |
|
46 |
+
_DOCUMENT = "text"
|
47 |
+
_SUMMARY = "summary"
|
48 |
+
|
49 |
|
50 |
class GazetaDataset(datasets.GeneratorBasedBuilder):
|
51 |
+
"""Gazeta Dataset"""
|
52 |
|
53 |
VERSION = datasets.Version("1.0.0")
|
54 |
|
|
|
61 |
def _info(self):
|
62 |
features = datasets.Features(
|
63 |
{
|
64 |
+
_DOCUMENT: datasets.Value("string"),
|
65 |
+
_SUMMARY: datasets.Value("string"),
|
66 |
"title": datasets.Value("string"),
|
67 |
"date": datasets.Value("string"),
|
68 |
"url": datasets.Value("string")
|
|
|
71 |
return datasets.DatasetInfo(
|
72 |
description=_DESCRIPTION,
|
73 |
features=features,
|
74 |
+
supervised_keys=(_DOCUMENT, _SUMMARY),
|
75 |
homepage=_HOMEPAGE,
|
|
|
76 |
citation=_CITATION,
|
77 |
)
|
78 |
|