Datasets:

Modalities:
Text
Formats:
parquet
Libraries:
Datasets
Dask
License:
parquet-converter commited on
Commit
73fa81c
1 Parent(s): 3254815

Update parquet files

Browse files
README.md DELETED
@@ -1,159 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - found
4
- language_creators:
5
- - found
6
- language:
7
- - fi
8
- - sv
9
- license:
10
- - unknown
11
- multilinguality:
12
- - translation
13
- size_categories:
14
- - 1M<n<10M
15
- source_datasets:
16
- - original
17
- task_categories:
18
- - translation
19
- task_ids: []
20
- paperswithcode_id: null
21
- pretty_name: OpusFinlex
22
- dataset_info:
23
- features:
24
- - name: translation
25
- dtype:
26
- translation:
27
- languages:
28
- - fi
29
- - sv
30
- config_name: fi-sv
31
- splits:
32
- - name: train
33
- num_bytes: 610550215
34
- num_examples: 3114141
35
- download_size: 153886554
36
- dataset_size: 610550215
37
- ---
38
-
39
- # Dataset Card for [opus_finlex]
40
-
41
- ## Table of Contents
42
- - [Dataset Description](#dataset-description)
43
- - [Dataset Summary](#dataset-summary)
44
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
45
- - [Languages](#languages)
46
- - [Dataset Structure](#dataset-structure)
47
- - [Data Instances](#data-instances)
48
- - [Data Fields](#data-fields)
49
- - [Data Splits](#data-splits)
50
- - [Dataset Creation](#dataset-creation)
51
- - [Curation Rationale](#curation-rationale)
52
- - [Source Data](#source-data)
53
- - [Annotations](#annotations)
54
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
55
- - [Considerations for Using the Data](#considerations-for-using-the-data)
56
- - [Social Impact of Dataset](#social-impact-of-dataset)
57
- - [Discussion of Biases](#discussion-of-biases)
58
- - [Other Known Limitations](#other-known-limitations)
59
- - [Additional Information](#additional-information)
60
- - [Dataset Curators](#dataset-curators)
61
- - [Licensing Information](#licensing-information)
62
- - [Citation Information](#citation-information)
63
- - [Contributions](#contributions)
64
-
65
- ## Dataset Description
66
-
67
- - **Homepage:**[Finlex](http://opus.nlpl.eu/Finlex.php)
68
- - **Repository:**
69
- - **Paper:**
70
- - **Leaderboard:**
71
- - **Point of Contact:**
72
-
73
- ### Dataset Summary
74
-
75
- The Finlex Data Base is a comprehensive collection of legislative and other judicial information of Finland, which is available in Finnish, Swedish and partially in English. This corpus is taken from the Semantic Finlex serice that provides the Finnish and Swedish data as linked open data and also raw XML files.
76
-
77
- ### Supported Tasks and Leaderboards
78
-
79
- The underlying task is machine translation for language pair Swedish and Finnish.
80
-
81
- ### Languages
82
-
83
- Swedish and Finnish
84
-
85
- ## Dataset Structure
86
-
87
- ### Data Instances
88
-
89
- [More Information Needed]
90
-
91
- ### Data Fields
92
-
93
- [More Information Needed]
94
-
95
- ### Data Splits
96
-
97
- [More Information Needed]
98
-
99
- ## Dataset Creation
100
-
101
- ### Curation Rationale
102
-
103
- [More Information Needed]
104
-
105
- ### Source Data
106
-
107
- #### Initial Data Collection and Normalization
108
-
109
- [More Information Needed]
110
-
111
- #### Who are the source language producers?
112
-
113
- [More Information Needed]
114
-
115
- ### Annotations
116
-
117
- #### Annotation process
118
-
119
- [More Information Needed]
120
-
121
- #### Who are the annotators?
122
-
123
- [More Information Needed]
124
-
125
- ### Personal and Sensitive Information
126
-
127
- [More Information Needed]
128
-
129
- ## Considerations for Using the Data
130
-
131
- ### Social Impact of Dataset
132
-
133
- [More Information Needed]
134
-
135
- ### Discussion of Biases
136
-
137
- [More Information Needed]
138
-
139
- ### Other Known Limitations
140
-
141
- [More Information Needed]
142
-
143
- ## Additional Information
144
-
145
- ### Dataset Curators
146
-
147
- [More Information Needed]
148
-
149
- ### Licensing Information
150
-
151
- [More Information Needed]
152
-
153
- ### Citation Information
154
-
155
- J. Tiedemann, 2012, Parallel Data, Tools and Interfaces in OPUS. In Proceedings of the 8th International Conference on Language Resources and Evaluation (LREC 2012)
156
-
157
- ### Contributions
158
-
159
- Thanks to [@spatil6](https://github.com/spatil6) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"fi-sv": {"description": "The Finlex Data Base is a comprehensive collection of legislative and other judicial information of Finland, which is available in Finnish, Swedish and partially in English. This corpus is taken from the Semantic Finlex serice that provides the Finnish and Swedish data as linked open data and also raw XML files.", "citation": "J. Tiedemann, 2012, Parallel Data, Tools and Interfaces in OPUS. In Proceedings of the 8th International Conference on Language Resources and Evaluation (LREC 2012)", "homepage": "http://opus.nlpl.eu/Finlex.php", "license": "", "features": {"translation": {"languages": ["fi", "sv"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_finlex", "config_name": "fi-sv", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 610550215, "num_examples": 3114141, "dataset_name": "opus_finlex"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-Finlex/v2018/moses/fi-sv.txt.zip": {"num_bytes": 153886554, "checksum": "38c28159c1bddf0108e911d35c5faef8560f2824c8975d80d85431bcdc42fc1c"}}, "download_size": 153886554, "post_processing_size": null, "dataset_size": 610550215, "size_in_bytes": 764436769}}
 
 
fi-sv/opus_finlex-train-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc72f28123b4e5a464b25bbb367731352ccae37f24f33bd5eddbe4a95a5ba54a
3
+ size 219164872
fi-sv/opus_finlex-train-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ba7829283a7307cbaa271b9446419947d1b9452f0823e7853f40e3dde09e06b
3
+ size 50152824
opus_finlex.py DELETED
@@ -1,92 +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
-
16
-
17
- import os
18
-
19
- import datasets
20
-
21
-
22
- _CITATION = """\
23
- J. Tiedemann, 2012, Parallel Data, Tools and Interfaces in OPUS. In Proceedings of the \
24
- 8th International Conference on Language Resources and Evaluation (LREC 2012)"""
25
-
26
-
27
- _DESCRIPTION = """\
28
- The Finlex Data Base is a comprehensive collection of legislative and other judicial information of Finland, \
29
- which is available in Finnish, Swedish and partially in English. This corpus is taken from the Semantic Finlex serice \
30
- that provides the Finnish and Swedish data as linked open data and also raw XML files."""
31
-
32
-
33
- _HOMEPAGE = "http://opus.nlpl.eu/Finlex.php"
34
-
35
-
36
- _LICENSE = ""
37
-
38
-
39
- _URLs = {"train": "https://object.pouta.csc.fi/OPUS-Finlex/v2018/moses/fi-sv.txt.zip"}
40
-
41
-
42
- class OpusFinlex(datasets.GeneratorBasedBuilder):
43
- """TODO: Short description of my dataset."""
44
-
45
- VERSION = datasets.Version("1.0.0")
46
-
47
- BUILDER_CONFIGS = [datasets.BuilderConfig(name="fi-sv", version=VERSION)]
48
-
49
- def _info(self):
50
- return datasets.DatasetInfo(
51
- description=_DESCRIPTION,
52
- features=datasets.Features(
53
- {"translation": datasets.features.Translation(languages=tuple(self.config.name.split("-")))}
54
- ),
55
- supervised_keys=None,
56
- homepage="http://opus.nlpl.eu/Finlex.php",
57
- citation=_CITATION,
58
- )
59
-
60
- def _split_generators(self, dl_manager):
61
- """Returns SplitGenerators."""
62
- data_dir = dl_manager.download_and_extract(_URLs)
63
- return [
64
- datasets.SplitGenerator(
65
- name=datasets.Split.TRAIN,
66
- # These kwargs will be passed to _generate_examples
67
- gen_kwargs={
68
- "source_file": os.path.join(data_dir["train"], "Finlex.fi-sv.fi"),
69
- "target_file": os.path.join(data_dir["train"], "Finlex.fi-sv.sv"),
70
- "split": "train",
71
- },
72
- ),
73
- ]
74
-
75
- def _generate_examples(self, source_file, target_file, split):
76
- """This function returns the examples in the raw (text) form."""
77
- with open(source_file, encoding="utf-8") as f:
78
- source_sentences = f.read().split("\n")
79
- with open(target_file, encoding="utf-8") as f:
80
- target_sentences = f.read().split("\n")
81
-
82
- assert len(target_sentences) == len(source_sentences), "Sizes do not match: %d vs %d for %s vs %s." % (
83
- len(source_sentences),
84
- len(target_sentences),
85
- source_file,
86
- target_file,
87
- )
88
-
89
- source, target = tuple(self.config.name.split("-"))
90
- for idx, (l1, l2) in enumerate(zip(source_sentences, target_sentences)):
91
- result = {"translation": {source: l1, target: l2}}
92
- yield idx, result