parquet-converter commited on
Commit
da25b5c
·
1 Parent(s): f94e826

Update parquet files

Browse files
Files changed (31) hide show
  1. README.md +0 -56
  2. africlirmatrix-v1.0-amharic/corpus.jsonl +0 -0
  3. africlirmatrix-v1.0-igbo/corpus.jsonl +0 -0
  4. africlirmatrix-v1.0-moroccan_arabic/corpus.jsonl +0 -0
  5. africlirmatrix-v1.0-northern_sotho/corpus.jsonl +0 -0
  6. africlirmatrix-v1.0-shona/corpus.jsonl +0 -0
  7. africlirmatrix-v1.0-somali/corpus.jsonl +0 -0
  8. africlirmatrix-v1.0-tigrinya/corpus.jsonl +0 -0
  9. africlirmatrix-v1.0-twi/corpus.jsonl +0 -0
  10. africlirmatrix-v1.0-wolof/corpus.jsonl +0 -0
  11. africlirmatrix-v1.0-yoruba/corpus.jsonl +0 -0
  12. africlirmatrix-v1.0-zulu/corpus.jsonl +0 -0
  13. africlirmatrix.py +0 -101
  14. africlirmatrix-v1.0-hausa/corpus.jsonl → afrikaans/africlirmatrix-train.parquet +2 -2
  15. africlirmatrix-v1.0-afrikaans/corpus.jsonl → amharic/africlirmatrix-train.parquet +2 -2
  16. africlirmatrix-v1.0-egyptian_arabic/corpus.jsonl → egyptian_arabic/africlirmatrix-train-00000-of-00004.parquet +2 -2
  17. egyptian_arabic/africlirmatrix-train-00001-of-00004.parquet +3 -0
  18. egyptian_arabic/africlirmatrix-train-00002-of-00004.parquet +3 -0
  19. egyptian_arabic/africlirmatrix-train-00003-of-00004.parquet +3 -0
  20. africlirmatrix-v1.0-swahili/corpus.jsonl → hausa/africlirmatrix-train.parquet +2 -2
  21. igbo/africlirmatrix-train.parquet +3 -0
  22. moroccan_arabic/africlirmatrix-train.parquet +3 -0
  23. northern_sotho/africlirmatrix-train.parquet +3 -0
  24. shona/africlirmatrix-train.parquet +3 -0
  25. somali/africlirmatrix-train.parquet +3 -0
  26. swahili/africlirmatrix-train.parquet +3 -0
  27. tigrinya/africlirmatrix-train.parquet +3 -0
  28. twi/africlirmatrix-train.parquet +3 -0
  29. wolof/africlirmatrix-train.parquet +3 -0
  30. yoruba/africlirmatrix-train.parquet +3 -0
  31. zulu/africlirmatrix-train.parquet +3 -0
README.md DELETED
@@ -1,56 +0,0 @@
1
- ---
2
- language:
3
- - af
4
- - am
5
- - arz
6
- - ha
7
- - ig
8
- - ary
9
- - nso
10
- - sn
11
- - so
12
- - sw
13
- - ti
14
- - tw
15
- - wo
16
- - yo
17
- - zu
18
-
19
-
20
- multilinguality:
21
- - multilingual
22
-
23
- task_categories:
24
- - text-retrieval
25
- license: apache-2.0
26
-
27
- viewer: true
28
- ---
29
-
30
- # Dataset Summary
31
- AfriCLIRMatrix is a test collection for cross-lingual information retrieval research in 15 diverse African languages. This resource comprises English queries with query–document relevance judgments in 15 African languages automatically mined from Wikipedia
32
-
33
- This dataset stores documents of AfriCLIRMatrix. To access the queries and judgments, please refer to [castorini/africlirmatrix](https://github.com/castorini/africlirmatrix).
34
-
35
- # Dataset Structure
36
- The only configuration here is the `language`.
37
-
38
- An example of document data entry looks as follows:
39
- ```
40
- {
41
- 'id': '62443',
42
- 'contents': 'Acyloin condensation jẹ́ ìyọkúrò àsopọ̀ àwọn carboxylic ester pẹ̀lú lílò metalic sodium lati ṣèdá α-hydroxyketone, tí wọ́n tún mọ̀ sí. Àdàpọ̀ ṣisẹ́ yìí jẹ́ èyí tó ...'
43
- }
44
-
45
- ```
46
- # Load Dataset
47
- An example to load the dataset:
48
- ```
49
- language = 'yoruba'
50
- dataset = load_dataset('castorini/africlirmatrix', language, 'train')
51
- ```
52
- # Citation Information
53
-
54
- ```
55
- coming soon
56
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
africlirmatrix-v1.0-amharic/corpus.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
africlirmatrix-v1.0-igbo/corpus.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
africlirmatrix-v1.0-moroccan_arabic/corpus.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
africlirmatrix-v1.0-northern_sotho/corpus.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
africlirmatrix-v1.0-shona/corpus.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
africlirmatrix-v1.0-somali/corpus.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
africlirmatrix-v1.0-tigrinya/corpus.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
africlirmatrix-v1.0-twi/corpus.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
africlirmatrix-v1.0-wolof/corpus.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
africlirmatrix-v1.0-yoruba/corpus.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
africlirmatrix-v1.0-zulu/corpus.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
africlirmatrix.py DELETED
@@ -1,101 +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
- # Lint as: python3
17
-
18
- import json
19
-
20
- import datasets
21
- from dataclasses import dataclass
22
-
23
- _CITATION = '''
24
- coming soon ...
25
- '''
26
-
27
- languages = [
28
- 'afrikaans',
29
- 'amharic',
30
- 'egyptian_arabic',
31
- 'hausa',
32
- 'igbo',
33
- 'moroccan_arabic',
34
- 'northern_sotho',
35
- 'shona',
36
- 'somali',
37
- 'swahili',
38
- 'tigrinya',
39
- 'twi',
40
- 'wolof',
41
- 'yoruba',
42
- 'zulu'
43
- ]
44
-
45
- _DESCRIPTION = 'dataset load script for AfriClirMatrix'
46
-
47
- _DATASET_URLS = {
48
- lang: {
49
- 'train': f'https://huggingface.co/datasets/ToluClassics/africlirmatrix/resolve/main/africlirmatrix-v1.0-{lang}/corpus.jsonl',
50
- } for lang in languages
51
- }
52
-
53
-
54
- class MrTyDiCorpus(datasets.GeneratorBasedBuilder):
55
- BUILDER_CONFIGS = [
56
- datasets.BuilderConfig(
57
- version=datasets.Version('1.1.0'),
58
- name=lang,
59
- description=f'AfriCLIRMatrix dataset in language {lang}.'
60
- ) for lang in languages
61
- ]
62
-
63
- def _info(self):
64
- features = datasets.Features({
65
- 'id': datasets.Value('string'),
66
- 'contents': datasets.Value('string'),
67
- })
68
-
69
- return datasets.DatasetInfo(
70
- # This is the description that will appear on the datasets page.
71
- description=_DESCRIPTION,
72
- # This defines the different columns of the dataset and their types
73
- features=features, # Here we define them above because they are different between the two configurations
74
- supervised_keys=None,
75
- # Homepage of the dataset for documentation
76
- homepage='https://github.com/castorini/africlirmatrix',
77
- # License for the dataset if available
78
- license='',
79
- # Citation for the dataset
80
- citation=_CITATION,
81
- )
82
-
83
- def _split_generators(self, dl_manager):
84
- lang = self.config.name
85
- downloaded_files = dl_manager.download_and_extract(_DATASET_URLS[lang])
86
-
87
- splits = [
88
- datasets.SplitGenerator(
89
- name='train',
90
- gen_kwargs={
91
- 'filepath': downloaded_files['train'],
92
- },
93
- ),
94
- ]
95
- return splits
96
-
97
- def _generate_examples(self, filepath):
98
- with open(filepath, encoding="utf-8") as f:
99
- for line in f:
100
- data = json.loads(line)
101
- yield data['id'], data
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
africlirmatrix-v1.0-hausa/corpus.jsonl → afrikaans/africlirmatrix-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f07ab3884639bda531c81ab9ab878b60f69c29a679c788a9c4df51836d0a9917
3
- size 11974753
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ceff3df08e55cc799e721eb95a799d0d10dfc4c18842cddf8d3e3daf8195a959
3
+ size 45674608
africlirmatrix-v1.0-afrikaans/corpus.jsonl → amharic/africlirmatrix-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6af74fd2dc37b1d77693595d342039d72384952ba2935bba01234832a92230e9
3
- size 82258091
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:016d9858a9e33ac1d1937748b809951de1c43886fea23ae7f10e0fcfef249e8d
3
+ size 4419393
africlirmatrix-v1.0-egyptian_arabic/corpus.jsonl → egyptian_arabic/africlirmatrix-train-00000-of-00004.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c1f152e0d1126576016965a5792683620ec54ecbae503238248b136c515db4e3
3
- size 2000052601
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:012add3f84f7052911ab69c32eef1ffc5b94554b0f36852e35256f1b98f4f8b7
3
+ size 103299783
egyptian_arabic/africlirmatrix-train-00001-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bdf7d34641a74ff749961d829e4daa8db248764684cb2214c179657fd3929a4
3
+ size 117210652
egyptian_arabic/africlirmatrix-train-00002-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63c2d9ff01bf86b38735ef90db67ceddae653e7149279484314d44383185f5c5
3
+ size 126834433
egyptian_arabic/africlirmatrix-train-00003-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92ba1e83145cab1cfd938a9e8481f9a9a65edcd8fe504a498d2a7698969ae840
3
+ size 118319512
africlirmatrix-v1.0-swahili/corpus.jsonl → hausa/africlirmatrix-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6612161de73a9fc5160d7fb9dc53c1442b548783adf5d319fdcb591308df8160
3
- size 37365268
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d28ad0b488304554a3afec6d0334bac1cdabab273afb9a6ae7eedd524ad4224
3
+ size 7291351
igbo/africlirmatrix-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2619d3543ed6fa7147620af2b6745e1621e5c56bc110946ed38b4d08e078209
3
+ size 1934441
moroccan_arabic/africlirmatrix-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65e6417ca71b05942a5fac7ece2da009f2cda03b94d799f8880dc58c787a4063
3
+ size 2329350
northern_sotho/africlirmatrix-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02b774c0671dd67e36add6f3488d35ff53b508c2060f7c58e91b6bae8e3eca0b
3
+ size 620038
shona/africlirmatrix-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df6280d63ff623e4e3abe2fff9400320093e2f6486522f10401ace493f162645
3
+ size 2773586
somali/africlirmatrix-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e325c39b23848ce06a15ea18e0615d716fcbad2b45e9508fcf9293b55f1f1301
3
+ size 4067207
swahili/africlirmatrix-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1e3e7167902ddad10434a0f9f2720ba6a9cf59ae1c0a2167d8029e65888ff7a
3
+ size 18974471
tigrinya/africlirmatrix-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fc3919a8245d9b164a630abdc7ccee82e1de8c7727af5d12086855eda085dce
3
+ size 96016
twi/africlirmatrix-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07b47d5d65174b419a49d6008ff60144df61538a69d229b562ffa4b2df85c28d
3
+ size 635696
wolof/africlirmatrix-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb1fb815b6c7d9e8f0b60575cfa4741ac132f9234a4c034ae0c00962c145dd4a
3
+ size 509100
yoruba/africlirmatrix-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80695c22eaf9003ad789f2586d5a882d85d719a8a6837eb6ad2164660c5f9b75
3
+ size 4188226
zulu/africlirmatrix-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:020167a61697fbdfb03c3950a236f40834cb96a1b0771eeadea8d62bae6c223f
3
+ size 1772706