Datasets:

Modalities:
Text
Formats:
json
Languages:
Norwegian
ArXiv:
Libraries:
Datasets
pandas
License:
parquet-converter commited on
Commit
3276384
·
1 Parent(s): f739353

Update parquet files

Browse files
.gitattributes CHANGED
@@ -14,3 +14,6 @@
14
  *.pb filter=lfs diff=lfs merge=lfs -text
15
  *.pt filter=lfs diff=lfs merge=lfs -text
16
  *.pth filter=lfs diff=lfs merge=lfs -text
 
 
 
 
14
  *.pb filter=lfs diff=lfs merge=lfs -text
15
  *.pt filter=lfs diff=lfs merge=lfs -text
16
  *.pth filter=lfs diff=lfs merge=lfs -text
17
+ default/norwegian_parliament-train.parquet filter=lfs diff=lfs merge=lfs -text
18
+ default/norwegian_parliament-validation.parquet filter=lfs diff=lfs merge=lfs -text
19
+ default/norwegian_parliament-test.parquet filter=lfs diff=lfs merge=lfs -text
README.md DELETED
@@ -1,113 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - expert-generated
4
- language_creators:
5
- - found
6
- language:
7
- - no
8
- license:
9
- - cc-by-4.0
10
- multilinguality:
11
- - monolingual
12
- size_categories:
13
- - 1K<n<10K
14
- source_datasets:
15
- - original
16
- task_categories:
17
- - text-classification
18
- ---
19
-
20
- # Dataset Card Creation Guide
21
-
22
- ## Table of Contents
23
-
24
- - [Dataset Description](#dataset-description)
25
- - [Dataset Summary](#dataset-summary)
26
- - [Supported Tasks](#supported-tasks-and-leaderboards)
27
- - [Languages](#languages)
28
- - [Dataset Structure](#dataset-structure)
29
- - [Data Instances](#data-instances)
30
- - [Data Fields](#data-instances)
31
- - [Data Splits](#data-instances)
32
- - [Dataset Creation](#dataset-creation)
33
- - [Curation Rationale](#curation-rationale)
34
- - [Source Data](#source-data)
35
- - [Annotations](#annotations)
36
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
37
- - [Considerations for Using the Data](#considerations-for-using-the-data)
38
- - [Social Impact of Dataset](#social-impact-of-dataset)
39
- - [Discussion of Biases](#discussion-of-biases)
40
- - [Other Known Limitations](#other-known-limitations)
41
- - [Additional Information](#additional-information)
42
- - [Dataset Curators](#dataset-curators)
43
- - [Licensing Information](#licensing-information)
44
- - [Citation Information](#citation-information)
45
-
46
- ## Dataset Description
47
-
48
- - **Homepage:** N/A
49
- - **Repository:** [GitHub](https://github.com/ltgoslo/NorBERT/)
50
- - **Paper:** N/A
51
- - **Leaderboard:** N/A
52
- - **Point of Contact:** -
53
-
54
- ### Dataset Summary
55
-
56
- The Norwegian Parliament Speeches is a collection of text passages from 1998 to 2016 and pronounced at the Norwegian Parliament (Storting) by members of the two major parties: Fremskrittspartiet and Sosialistisk Venstreparti. The dataset is annotated with the party the speaker was associated with at the time (dates of speeches are also included).
57
-
58
- ### Supported Tasks and Leaderboards
59
-
60
- [More Information Needed]
61
-
62
- ### Languages
63
-
64
- The text in the dataset is in Norwegian.
65
-
66
- ## Dataset Structure
67
-
68
- ### Data Instances
69
-
70
- Example of one instance in the dataset.
71
-
72
- ```{'label': 0, 'text': 'Verre er det med slagsmålene .'}```
73
-
74
- ### Data Fields
75
-
76
- - `id`: index of the example
77
- - `text`: Text of a speech
78
- - `date`: Date (`YYYY-MM-DD`) the speech was produced
79
- - `label`: Political party the speaker was associated with at the time
80
- - 0 = Fremskrittspartiet
81
- - 1 = Sosialistisk Venstreparti
82
-
83
- ### Data Splits
84
-
85
- The dataset is split into a `train`, `validation`, and `test` split with the following sizes:
86
-
87
- | | Tain | Valid | Test |
88
- | ----- | ------ | ----- | ----- |
89
- | Number of examples | 3600 | 1200 | 1200 |
90
-
91
- The dataset is balanced on political party.
92
-
93
- ## Dataset Creation
94
-
95
- This dataset is based on the publicly available information by Norwegian Parliament (Storting) and created by the National Library of Norway AI-Lab to benchmark their language models.
96
-
97
- ## Additional Information
98
-
99
- ### Licensing Information
100
-
101
- This work is licensed under a Creative Commons Attribution 4.0 International License
102
-
103
- ### Citation Information
104
-
105
- ```latex
106
- @misc{--,
107
- title={--},
108
- author={--},
109
- year={2021},
110
- archivePrefix={arXiv},
111
- primaryClass={cs.CL}
112
- }
113
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"default": {"description": "The Norwegian Parliament Speeches is a collection of text passages from\n1998 to 2016 and pronounced at the Norwegian Parliament (Storting) by members\nof the two major parties: Fremskrittspartiet and Sosialistisk Venstreparti.\n", "citation": "\n@InProceedings{--,\n author = {---},\n title = {---},\n booktitle = {---},\n year = 2021,\n address = \"---\"\n}\n", "homepage": "https://github.com/NBAiLab/notram/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["Fremskrittspartiet", "Sosialistisk Venstreparti"], "names_file": null, "id": null, "_type": "ClassLabel"}, "date": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "norwegian_parliament", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 6646256, "num_examples": 3600, "dataset_name": "norwegian_parliament"}, "validation": {"name": "validation", "num_bytes": 2384359, "num_examples": 1200, "dataset_name": "norwegian_parliament"}, "test": {"name": "test", "num_bytes": 2350756, "num_examples": 1200, "dataset_name": "norwegian_parliament"}}, "download_checksums": {"https://storage.googleapis.com/notram-public/finetune_datasets/parliament_speeches_1998_2016_frp_or_sv/train.csv": {"num_bytes": 6691149, "checksum": "5138fa8521424df0feca43d64a6a75fb1f4d9f2e759cc78027a1dc3bb8bde7ea"}, "https://storage.googleapis.com/notram-public/finetune_datasets/parliament_speeches_1998_2016_frp_or_sv/dev.csv": {"num_bytes": 2399289, "checksum": "b5397e989015c558bc5fb5cc706282b3306a41e09e950559ac0b3eaea8d72dd2"}, "https://storage.googleapis.com/notram-public/finetune_datasets/parliament_speeches_1998_2016_frp_or_sv/test.csv": {"num_bytes": 2365709, "checksum": "d1ebce8715e69884be78713e78d34635c2e6bb67db05c46e5833c2fb433f3825"}}, "download_size": 11456147, "post_processing_size": null, "dataset_size": 11381371, "size_in_bytes": 22837518}}
 
 
default/norwegian_parliament-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5abaa87a68fee146bc3610ed834432a77845b3cb3a94205e889416802f72538d
3
+ size 1358768
default/norwegian_parliament-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66230002953e7ae56061f0fa677a82c4284f255ddec8dcbb9a66eb936abe1054
3
+ size 3826017
default/norwegian_parliament-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4d16bde89cb7912999b4997c0057d3c50f9f2c4987aaad7bae320e02a063204
3
+ size 1369391
dummy/1.0.0/dummy_data.zip DELETED
Binary file (11.4 kB)
 
norwegian_parliament.py DELETED
@@ -1,85 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- """Norwegian Parliament Speeches (1998, 2016)"""
16
- import csv
17
-
18
- import datasets
19
-
20
-
21
- _CITATION = """
22
- @InProceedings{--,
23
- author = {---},
24
- title = {---},
25
- booktitle = {---},
26
- year = 2021,
27
- address = "---"
28
- }
29
- """
30
-
31
- _DESCRIPTION = """\
32
- The Norwegian Parliament Speeches is a collection of text passages from
33
- 1998 to 2016 and pronounced at the Norwegian Parliament (Storting) by members
34
- of the two major parties: Fremskrittspartiet and Sosialistisk Venstreparti.
35
- """
36
-
37
-
38
- _HOMEPAGE = "https://github.com/NBAiLab/notram/"
39
-
40
- _BASE_URL = "https://storage.googleapis.com/notram-public/finetune_datasets/parliament_speeches_1998_2016_frp_or_sv"
41
- _URLS = {
42
- "train": f"{_BASE_URL}/train.csv",
43
- "dev": f"{_BASE_URL}/dev.csv",
44
- "test": f"{_BASE_URL}/test.csv",
45
- }
46
-
47
-
48
- class NorwegianParliament(datasets.GeneratorBasedBuilder):
49
- """Norwegian Parliament Speeches (1998, 2016)"""
50
-
51
- VERSION = datasets.Version("1.0.0")
52
-
53
- def _info(self):
54
- return datasets.DatasetInfo(
55
- description=_DESCRIPTION,
56
- features=datasets.Features(
57
- {
58
- "text": datasets.Value("string"),
59
- "label": datasets.ClassLabel(names=["Fremskrittspartiet", "Sosialistisk Venstreparti"]),
60
- "date": datasets.Value("string"),
61
- }
62
- ),
63
- supervised_keys=None,
64
- homepage=_HOMEPAGE,
65
- citation=_CITATION,
66
- )
67
-
68
- def _split_generators(self, dl_manager):
69
- downloaded_files = dl_manager.download(_URLS)
70
- return [
71
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
72
- datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
73
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
74
- ]
75
-
76
- def _generate_examples(self, filepath):
77
- with open(filepath, encoding="utf-8") as csv_file:
78
- csv_reader = csv.reader(csv_file, delimiter=",")
79
- for idx, (label, text, _, date) in enumerate(csv_reader):
80
- label = int(label)
81
- yield int(idx), {
82
- "text": text,
83
- "label": label,
84
- "date": date,
85
- }