Everlyn commited on
Commit
a52d2b5
·
verified ·
1 Parent(s): 12c65ed

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +139 -0
README.md ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - sw
4
+ - luo
5
+ - bxk
6
+ - lri
7
+ - rag
8
+ license: cc-by-4.0
9
+ task_categories:
10
+ - text-generation
11
+ - text-classification
12
+ tags:
13
+ - swahili
14
+ - kiswahili
15
+ - dholuo
16
+ - lubukusu
17
+ - lumarachi
18
+ - lulogooli
19
+ - kenyan-languages
20
+ - low-resource-languages
21
+ - african-languages
22
+ - text-corpus
23
+ pretty_name: KenCorpus Text
24
+ size_categories:
25
+ - 1K<n<10K
26
+ ---
27
+
28
+ # KenCorpus Text: A Kenyan Multilingual Text Corpus
29
+
30
+ ## Dataset Description
31
+
32
+ **KenCorpus Text** is a multilingual text corpus for Kenyan languages, collected from language communities including indigenous stories, student compositions, native language media stations, and publishers. The corpus goes beyond conventional religious texts to represent everyday language use.
33
+
34
+ Three languages were selected: **Kiswahili**, **Luhya** (dialects: Lumarachi, Logooli, Lubukusu), and **Dholuo**.
35
+
36
+ ## Dataset Statistics
37
+
38
+ | Language | Files | Source |
39
+ |----------|-------|--------|
40
+ | Swahili | 2,585 | Community texts |
41
+ | Swahili (Tweets) | 324 | Social media |
42
+ | Dholuo | 166 | Community texts |
43
+ | Lumarachi | 449 | Community texts |
44
+ | Lubukusu | 16 | Community texts |
45
+ | Logooli | 247 | Community texts |
46
+
47
+ ## Data Fields
48
+
49
+ | Column | Type | Description |
50
+ |--------|------|-------------|
51
+ | text | string | Full text content |
52
+ | language | string | Language (Swahili, Dholuo, Lubukusu, Lumarachi, Logooli, Luhya_Bukusu, etc.) |
53
+ | genre | string | Genre (Culture, News, Creative_writing, Exam, Agriculture, etc.) |
54
+ | source | string | Data source (Community, Educational_Institution, Media, Publisher, etc.) |
55
+ | title | string | Title of the text if available |
56
+ | story_id | string | Unique identifier matching the KenCorpus metadata |
57
+ | source_type | string | Source category (community_text, tweets) |
58
+
59
+ ### Example Record
60
+
61
+ ```python
62
+ {
63
+ 'text': 'HISTORIA YA SHULE YA UPILI YA OLEFREMA...',
64
+ 'language': 'Swahili',
65
+ 'genre': 'Creative_writing',
66
+ 'source': 'Educational_Institution',
67
+ 'title': 'Historia ya shule',
68
+ 'story_id': '3510',
69
+ 'source_type': 'community_text'
70
+ }
71
+ ```
72
+
73
+ ---
74
+
75
+ ## Usage
76
+
77
+ ```python
78
+ from datasets import load_dataset
79
+
80
+ # Load the dataset
81
+ dataset = load_dataset("Kencorpus/KenCorpus_text")
82
+
83
+ # Access samples
84
+ print(dataset['train'][0])
85
+
86
+ # Filter by language
87
+ swahili = dataset['train'].filter(lambda x: x['language'] == 'Swahili')
88
+ dholuo = dataset['train'].filter(lambda x: x['language'] == 'Dholuo')
89
+
90
+ print(f"Swahili: {len(swahili)}, Dholuo: {len(dholuo)}")
91
+ ```
92
+
93
+ ---
94
+
95
+ ## Genres
96
+
97
+ Culture, News, Creative_writing, Exam, Agriculture, Commerce, Religion, Song, Health, Story, and more.
98
+
99
+ ---
100
+
101
+ ## Data Collection
102
+
103
+ Primary data was collected from respective language communities, including indigenous stories and narratives from student compositions, native language media stations, and publishers.
104
+
105
+ ## Dataset Curators
106
+
107
+ **Kiswahili:** Rose Felynix, Khalid Kitito, Dr. Benard Okal
108
+ **Dholuo:** Jotham Ondu Ajiki, Dr. Jackline Okello, Jonathan Muga, Mercy Lavinca Oduoll
109
+ **Luhya (Logooli):** Salano Odari, Dr. Phillip Lumwamu
110
+ **Luhya (Bukusu):** Mactilda Nekesa Makana, Mulwale Martin
111
+ **Luhya (Marachi):** Yonah Weunda
112
+
113
+ ---
114
+
115
+ ## Citation
116
+
117
+ ```bibtex
118
+ @article{wanjawa2022kencorpus,
119
+ title={Kencorpus: A Kenyan Language Corpus of Swahili, Dholuo and Luhya for Natural Language Processing Tasks},
120
+ author={Wanjawa, Barack W. and Wanzare, Lilian D. and Indede, Florence and McOnyango, Owen and Ombui, Edward and Muchemi, Lawrence},
121
+ journal={arXiv preprint arXiv:2208.12081},
122
+ year={2022}
123
+ }
124
+ ```
125
+
126
+ ---
127
+
128
+ ## Links
129
+
130
+ - **Research Paper**: https://arxiv.org/abs/2208.12081
131
+ - **Dataverse**: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/KLCKL5
132
+
133
+ ## License
134
+
135
+ **CC-BY-4.0**
136
+
137
+ ## Acknowledgments
138
+
139
+ Part of the **Kencorpus** project for low-resource Kenyan language NLP resources.