Update sg-holiday.py
Browse files- sg-holiday.py +10 -11
sg-holiday.py
CHANGED
@@ -4,16 +4,15 @@ import os
|
|
4 |
import pandas as pd
|
5 |
import datasets
|
6 |
|
7 |
-
_CITATION =
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
}
|
16 |
-
"""
|
17 |
|
18 |
_DESCRIPTION = """\
|
19 |
This news dataset is a holiday information of singapore from 2017 to 2022.
|
@@ -36,7 +35,7 @@ class TimesOfHoliday(datasets.GeneratorBasedBuilder):
|
|
36 |
feature_names = [_DATE, _DAY, _HOLIDAY]
|
37 |
return datasets.DatasetInfo(
|
38 |
description=_DESCRIPTION,
|
39 |
-
features=datasets.Features(),
|
40 |
supervised_keys=None,
|
41 |
homepage=_HOMEPAGE,
|
42 |
citation=_CITATION,
|
|
|
4 |
import pandas as pd
|
5 |
import datasets
|
6 |
|
7 |
+
_CITATION = '''\\n@inproceedings{Casanueva2022,
|
8 |
+
author = Mulin,
|
9 |
+
title = Holiday Dataset,
|
10 |
+
year = {2022},
|
11 |
+
month = {Mar},
|
12 |
+
note = {},
|
13 |
+
url = {},
|
14 |
+
booktitle = {}
|
15 |
+
}'''
|
|
|
16 |
|
17 |
_DESCRIPTION = """\
|
18 |
This news dataset is a holiday information of singapore from 2017 to 2022.
|
|
|
35 |
feature_names = [_DATE, _DAY, _HOLIDAY]
|
36 |
return datasets.DatasetInfo(
|
37 |
description=_DESCRIPTION,
|
38 |
+
features=datasets.Features({_DATE: datasets.Value('string'), _DAY: datasets.Value('string'), _HOLIDAY: datasets.Value('string')}),
|
39 |
supervised_keys=None,
|
40 |
homepage=_HOMEPAGE,
|
41 |
citation=_CITATION,
|