parquet-converter commited on
Commit
ed35f0f
·
1 Parent(s): 2137d4b

Update parquet files

Browse files
Files changed (6) hide show
  1. .gitattributes +0 -51
  2. README.md +0 -161
  3. dataset_infos.json +0 -1
  4. default/kelly-train.parquet +3 -0
  5. kelly.py +0 -100
  6. sv.csv +0 -0
.gitattributes DELETED
@@ -1,51 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ftz filter=lfs diff=lfs merge=lfs -text
6
- *.gz filter=lfs diff=lfs merge=lfs -text
7
- *.h5 filter=lfs diff=lfs merge=lfs -text
8
- *.joblib filter=lfs diff=lfs merge=lfs -text
9
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
- *.lz4 filter=lfs diff=lfs merge=lfs -text
11
- *.model filter=lfs diff=lfs merge=lfs -text
12
- *.msgpack filter=lfs diff=lfs merge=lfs -text
13
- *.npy filter=lfs diff=lfs merge=lfs -text
14
- *.npz filter=lfs diff=lfs merge=lfs -text
15
- *.onnx filter=lfs diff=lfs merge=lfs -text
16
- *.ot filter=lfs diff=lfs merge=lfs -text
17
- *.parquet filter=lfs diff=lfs merge=lfs -text
18
- *.pb filter=lfs diff=lfs merge=lfs -text
19
- *.pickle filter=lfs diff=lfs merge=lfs -text
20
- *.pkl filter=lfs diff=lfs merge=lfs -text
21
- *.pt filter=lfs diff=lfs merge=lfs -text
22
- *.pth filter=lfs diff=lfs merge=lfs -text
23
- *.rar filter=lfs diff=lfs merge=lfs -text
24
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
25
- *.tar.* filter=lfs diff=lfs merge=lfs -text
26
- *.tflite filter=lfs diff=lfs merge=lfs -text
27
- *.tgz filter=lfs diff=lfs merge=lfs -text
28
- *.wasm filter=lfs diff=lfs merge=lfs -text
29
- *.xz filter=lfs diff=lfs merge=lfs -text
30
- *.zip filter=lfs diff=lfs merge=lfs -text
31
- *.zst filter=lfs diff=lfs merge=lfs -text
32
- *tfevents* filter=lfs diff=lfs merge=lfs -text
33
- # Audio files - uncompressed
34
- *.pcm filter=lfs diff=lfs merge=lfs -text
35
- *.sam filter=lfs diff=lfs merge=lfs -text
36
- *.raw filter=lfs diff=lfs merge=lfs -text
37
- # Audio files - compressed
38
- *.aac filter=lfs diff=lfs merge=lfs -text
39
- *.flac filter=lfs diff=lfs merge=lfs -text
40
- *.mp3 filter=lfs diff=lfs merge=lfs -text
41
- *.ogg filter=lfs diff=lfs merge=lfs -text
42
- *.wav filter=lfs diff=lfs merge=lfs -text
43
- # Image files - uncompressed
44
- *.bmp filter=lfs diff=lfs merge=lfs -text
45
- *.gif filter=lfs diff=lfs merge=lfs -text
46
- *.png filter=lfs diff=lfs merge=lfs -text
47
- *.tiff filter=lfs diff=lfs merge=lfs -text
48
- # Image files - compressed
49
- *.jpg filter=lfs diff=lfs merge=lfs -text
50
- *.jpeg filter=lfs diff=lfs merge=lfs -text
51
- *.webp filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,161 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - expert-generated
4
- language:
5
- - sv
6
- language_creators:
7
- - expert-generated
8
- license:
9
- - cc-by-4.0
10
- multilinguality:
11
- - monolingual
12
- pretty_name: kelly
13
- size_categories:
14
- - 1K<n<10K
15
- source_datasets: []
16
- tags:
17
- - lexicon
18
- - swedish
19
- - CEFR
20
- task_categories:
21
- - text-classification
22
- task_ids:
23
- - text-scoring
24
- ---
25
-
26
- # Dataset Card for Kelly
27
-
28
- Keywords for Language Learning for Young and adults alike
29
-
30
- ## Table of Contents
31
- - [Table of Contents](#table-of-contents)
32
- - [Dataset Description](#dataset-description)
33
- - [Dataset Summary](#dataset-summary)
34
- - [Languages](#languages)
35
- - [Dataset Structure](#dataset-structure)
36
- - [Data Instances](#data-instances)
37
- - [Data Fields](#data-fields)
38
- - [Data Splits](#data-splits)
39
- - [Dataset Creation](#dataset-creation)
40
- - [Additional Information](#additional-information)
41
- - [Licensing Information](#licensing-information)
42
- - [Citation Information](#citation-information)
43
- - [Contributions](#contributions)
44
-
45
- ## Dataset Description
46
-
47
- - **Homepage:** https://spraakbanken.gu.se/en/resources/kelly
48
- - **Paper:** https://link.springer.com/article/10.1007/s10579-013-9251-2
49
-
50
- ### Dataset Summary
51
-
52
- The Swedish Kelly list is a freely available frequency-based vocabulary list
53
- that comprises general-purpose language of modern Swedish. The list was
54
- generated from a large web-acquired corpus (SweWaC) of 114 million words
55
- dating from the 2010s. It is adapted to the needs of language learners and
56
- contains 8,425 most frequent lemmas that cover 80% of SweWaC.
57
-
58
- ### Languages
59
-
60
- Swedish (sv-SE)
61
-
62
- ## Dataset Structure
63
-
64
- ### Data Instances
65
-
66
- Here is a sample of the data:
67
-
68
- ```python
69
- {
70
- 'id': 190,
71
- 'raw_frequency': 117835.0,
72
- 'relative_frequency': 1033.61,
73
- 'cefr_level': 'A1',
74
- 'source': 'SweWaC',
75
- 'marker': 'en',
76
- 'lemma': 'dag',
77
- 'pos': 'noun-en',
78
- 'examples': 'e.g. god dag'
79
- }
80
- ```
81
-
82
- This can be understood as:
83
-
84
- > The common noun "dag" ("day") has a rank of 190 in the list. It was used 117,835
85
- times in SweWaC, meaning it occured 1033.61 times per million words. This word
86
- is among the most important vocabulary words for Swedish language learners and
87
- should be learned at the A1 CEFR level. An example usage of this word is the
88
- phrase "god dag" ("good day").
89
-
90
-
91
- ### Data Fields
92
-
93
- - `id`: The row number for the data entry, starting at 1. Generally corresponds
94
- to the rank of the word.
95
- - `raw_frequency`: The raw frequency of the word.
96
- - `relative_frequency`: The relative frequency of the word measured in
97
- number of occurences per million words.
98
- - `cefr_level`: The CEFR level (A1, A2, B1, B2, C1, C2) of the word.
99
- - `source`: Whether the word came from SweWaC, translation lists (T2), or
100
- was manually added (manual).
101
- - `marker`: The grammatical marker of the word, if any, such as an article or
102
- infinitive marker.
103
- - `lemma`: The lemma of the word, sometimes provided with its spelling or
104
- stylistic variants.
105
- - `pos`: The word's part-of-speech.
106
- - `examples`: Usage examples and comments. Only available for some of the words.
107
-
108
- Manual entries were prepended to the list, giving them a higher rank than they
109
- might otherwise have had. For example, the manual entry "Göteborg ("Gothenberg")
110
- has a rank of 20, while the first non-manual entry "och" ("and") has a rank of
111
- 87. However, a conjunction and common stopword is far more likely to occur than
112
- the name of a city.
113
-
114
- ### Data Splits
115
-
116
- There is a single split, `train`.
117
-
118
- ## Dataset Creation
119
-
120
- Please refer to the article [Corpus-based approaches for the creation of a frequency
121
- based vocabulary list in the EU project KELLY – issues on reliability, validity and
122
- coverage](https://gup.ub.gu.se/publication/148533?lang=en) for information about how
123
- the original dataset was created and considerations for using the data.
124
-
125
- **The following changes have been made to the original dataset**:
126
-
127
- - Changed header names.
128
- - Normalized the large web-acquired corpus name to "SweWac" in the `source` field.
129
- - Set the relative frequency of manual entries to null rather than 1000000.
130
-
131
-
132
- ## Additional Information
133
-
134
- ### Licensing Information
135
-
136
- [CC BY 4.0](https://creativecommons.org/licenses/by/4.0)
137
-
138
- ### Citation Information
139
-
140
- Please cite the authors if you use this dataset in your work:
141
-
142
- ```bibtex
143
- @article{Kilgarriff2013,
144
- doi = {10.1007/s10579-013-9251-2},
145
- url = {https://doi.org/10.1007/s10579-013-9251-2},
146
- year = {2013},
147
- month = sep,
148
- publisher = {Springer Science and Business Media {LLC}},
149
- volume = {48},
150
- number = {1},
151
- pages = {121--163},
152
- author = {Adam Kilgarriff and Frieda Charalabopoulou and Maria Gavrilidou and Janne Bondi Johannessen and Saussan Khalil and Sofie Johansson Kokkinakis and Robert Lew and Serge Sharoff and Ravikiran Vadlapudi and Elena Volodina},
153
- title = {Corpus-based vocabulary lists for language learners for nine languages},
154
- journal = {Language Resources and Evaluation}
155
- }
156
- ```
157
-
158
- ### Contributions
159
-
160
- Thanks to [@spraakbanken](https://github.com/spraakbanken) for creating this dataset
161
- and to [@codesue](https://github.com/codesue) for adding it.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"default": {"description": "The Swedish Kelly list is a freely available frequency-based vocabulary list that comprises general-purpose language of modern Swedish. The list was generated from a large web-acquired corpus (SweWaC) of 114 million words dating from the 2010s. It is adapted to the needs of language learners and contains 8,425 most frequent lemmas that cover 80% of SweWaC.", "citation": "@article{Kilgarriff2013,\ndoi = {10.1007/s10579-013-9251-2},\nurl = {https://doi.org/10.1007/s10579-013-9251-2},\nyear = {2013},\nmonth = sep,\npublisher = {Springer Science and Business Media {LLC}},\nvolume = {48},\nnumber = {1},\npages = {121--163},\nauthor = {Adam Kilgarriff and Frieda Charalabopoulou and Maria Gavrilidou and Janne Bondi Johannessen and Saussan Khalil and Sofie Johansson Kokkinakis and Robert Lew and Serge Sharoff and Ravikiran Vadlapudi and Elena Volodina},\ntitle = {Corpus-based vocabulary lists for language learners for nine languages},\njournal = {Language Resources and Evaluation}\n}\n", "homepage": "https://spraakbanken.gu.se/en/resources/kelly", "license": "CC BY 4.0", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "raw_frequency": {"dtype": "float64", "id": null, "_type": "Value"}, "relative_frequency": {"dtype": "float64", "id": null, "_type": "Value"}, "cefr_level": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"dtype": "string", "id": null, "_type": "Value"}, "marker": {"dtype": "string", "id": null, "_type": "Value"}, "lemma": {"dtype": "string", "id": null, "_type": "Value"}, "pos": {"dtype": "string", "id": null, "_type": "Value"}, "examples": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "kelly", "config_name": "default", "version": {"version_str": "1.0.1", "description": null, "major": 1, "minor": 0, "patch": 1}, "splits": {"train": {"name": "train", "num_bytes": 568998, "num_examples": 8425, "dataset_name": "kelly"}}, "download_checksums": {"sv.csv": {"num_bytes": 377409, "checksum": "92a8b97affa5b36031c0854729ccbbeda3065d994d3f0e058c4b343bf2c6611c"}}, "download_size": 377409, "post_processing_size": null, "dataset_size": 568998, "size_in_bytes": 946407}}
 
 
default/kelly-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ae7a89f08912545c0ad0c1d652a05107c39e641395367395bef5794d016c0ea
3
+ size 213758
kelly.py DELETED
@@ -1,100 +0,0 @@
1
- """
2
- The dataset loading script for the codesue/kelly dataset.
3
- """
4
-
5
- import csv
6
-
7
- import datasets
8
-
9
- _CITATION = """\
10
- @article{Kilgarriff2013,
11
- doi = {10.1007/s10579-013-9251-2},
12
- url = {https://doi.org/10.1007/s10579-013-9251-2},
13
- year = {2013},
14
- month = sep,
15
- publisher = {Springer Science and Business Media {LLC}},
16
- volume = {48},
17
- number = {1},
18
- pages = {121--163},
19
- author = {Adam Kilgarriff and Frieda Charalabopoulou and Maria Gavrilidou and Janne Bondi Johannessen and Saussan Khalil and Sofie Johansson Kokkinakis and Robert Lew and Serge Sharoff and Ravikiran Vadlapudi and Elena Volodina},
20
- title = {Corpus-based vocabulary lists for language learners for nine languages},
21
- journal = {Language Resources and Evaluation}
22
- }
23
- """
24
-
25
- _DESCRIPTION = """\
26
- The Swedish Kelly list is a freely available frequency-based vocabulary list \
27
- that comprises general-purpose language of modern Swedish. The list was \
28
- generated from a large web-acquired corpus (SweWaC) of 114 million words \
29
- dating from the 2010s. It is adapted to the needs of language learners \
30
- and contains 8,425 most frequent lemmas that cover 80% of SweWaC.\
31
- """
32
-
33
- _HOMEPAGE = "https://spraakbanken.gu.se/en/resources/kelly"
34
-
35
- _LICENSE = "CC BY 4.0"
36
-
37
- _URLS = {
38
- "csv": "sv.csv",
39
- }
40
-
41
-
42
- class Kelly(datasets.GeneratorBasedBuilder):
43
- """Kelly: Keywords for Language Learning for Young and adults alike"""
44
-
45
- VERSION = datasets.Version("1.0.1")
46
-
47
- def _info(self):
48
- features = datasets.Features(
49
- {
50
- "id": datasets.Value("int32"),
51
- "raw_frequency": datasets.Value("float64"),
52
- "relative_frequency": datasets.Value("float64"),
53
- "cefr_level": datasets.Value("string"),
54
- "source": datasets.Value("string"),
55
- "marker": datasets.Value("string"),
56
- "lemma": datasets.Value("string"),
57
- "pos": datasets.Value("string"),
58
- "examples": datasets.Value("string"),
59
- }
60
- )
61
-
62
- return datasets.DatasetInfo(
63
- description=_DESCRIPTION,
64
- features=features,
65
- homepage=_HOMEPAGE,
66
- license=_LICENSE,
67
- citation=_CITATION,
68
- )
69
-
70
- def _split_generators(self, dl_manager):
71
- data_path = dl_manager.download_and_extract(_URLS["csv"])
72
- return [
73
- datasets.SplitGenerator(
74
- name=datasets.Split.TRAIN,
75
- gen_kwargs={
76
- "filepath": data_path,
77
- },
78
- ),
79
- ]
80
-
81
- def _generate_examples(self, filepath):
82
- """Generate text2log dataset examples."""
83
- with open(filepath, encoding="utf-8") as csv_file:
84
- csv_reader = csv.reader(
85
- csv_file, quotechar='"', delimiter=",", quoting=csv.QUOTE_ALL, skipinitialspace=True
86
- )
87
- next(csv_reader)
88
- for key, row in enumerate(csv_reader):
89
- a, b, c, d, e, f, g, h, i = row
90
- yield key, {
91
- "id": a,
92
- "raw_frequency": b or "NaN",
93
- "relative_frequency": c or "NaN",
94
- "cefr_level": d,
95
- "source": e,
96
- "marker": f,
97
- "lemma": g,
98
- "pos": h,
99
- "examples": i,
100
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
sv.csv DELETED
The diff for this file is too large to render. See raw diff