adeleyi commited on
Commit
79d9619
·
verified ·
1 Parent(s): d3ee71e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +73 -4
README.md CHANGED
@@ -4,21 +4,90 @@ configs:
4
  data_files:
5
  - split: train
6
  path: hausa/hau_dictionary.csv
7
-
8
  - config_name: ibo
9
  data_files:
10
  - split: train
11
  path: igbo/ibo_dictionary.csv
12
-
13
  - config_name: swh
14
  data_files:
15
  - split: train
16
  path: swahili/swa_dictionary.csv
17
-
18
  - config_name: yor
19
  data_files:
20
  - split: train
21
  path: yoruba/yor_dictionary.csv
22
-
23
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  data_files:
5
  - split: train
6
  path: hausa/hau_dictionary.csv
 
7
  - config_name: ibo
8
  data_files:
9
  - split: train
10
  path: igbo/ibo_dictionary.csv
 
11
  - config_name: swh
12
  data_files:
13
  - split: train
14
  path: swahili/swa_dictionary.csv
 
15
  - config_name: yor
16
  data_files:
17
  - split: train
18
  path: yoruba/yor_dictionary.csv
 
19
  license: mit
20
+ language:
21
+ - ha
22
+ - ig
23
+ - sw
24
+ - yo
25
+ task_categories:
26
+ - translation
27
+ pretty_name: Afri-Dict
28
+ tags:
29
+ - african-languages
30
+ - dictionary
31
+ - nlp
32
+ - lexicon
33
+ dataset_info:
34
+ features:
35
+ - name: word
36
+ dtype: string
37
+ - name: pos
38
+ dtype: string
39
+ - name: definition
40
+ dtype: string
41
  ---
42
+
43
+ # Afri-Dict
44
+
45
+ ## Dataset Summary
46
+ `afri-dict` is a bilingual dictionary dataset for four major African languages: Hausa, Igbo, Swahili, and Yoruba.
47
+ Entries include a headword, part-of-speech tag, and definition in English or the target African language.
48
+ This dataset can serve as a foundational resource for machine translation systems, language learning tools, spell checkers, cross-lingual search, and other NLP applications for African languages.
49
+
50
+ ## Languages
51
+ The dataset is organized into subsets by language. Note that the headword language in the `word` field varies by subset.
52
+
53
+ | ISO Code | Language | Size (Entries) | Mapping Direction |
54
+ | :--- | :--- | :--- | :--- |
55
+ | `hau` | Hausa | 4,920 | English ↔ Hausa |
56
+ | `ibo` | Igbo | | Igbo ↔ English |
57
+ | `swh` | Swahili | 9,760 | English ↔ Swahili |
58
+ | `yor` | Yoruba | 12,200 | Yoruba ↔ English |
59
+
60
+
61
+ ## Dataset Structure
62
+
63
+ ### Data Fields
64
+ * **`word`**: This is the headword or source term.
65
+ * **`pos`**: Part of speech for the headword.
66
+ * **`definition`**: The equivalent word or an explanatory definition in the target language. In some cases, multiple synonyms are provided, separated by commas.
67
+
68
+
69
+ ## Usage
70
+ ```python
71
+ from datasets import load_dataset
72
+
73
+ # Load specific language
74
+ hausa = load_dataset("taresco/afri-dict", "hau")
75
+ swahili = load_dataset("taresco/afri-dict", "swh")
76
+
77
+ # Access the first entry
78
+ print(hausa['train'][0])
79
+ print(swahili['train'][0])
80
+ ```
81
+
82
+ ## Citation Information
83
+ If you use this dataset in your research or project, please cite it as follows:
84
+
85
+ ```
86
+ @misc{taresco2025afri-dict,
87
+ author = {The African Research Collective},
88
+ title = {Afri-Dict},
89
+ year = {2025},
90
+ publisher = {Hugging Face},
91
+ howpublished = {\url{[https://huggingface.co/datasets/taresco/afri-dict](https://huggingface.co/datasets/taresco/afri-dict)}}
92
+ }
93
+ ```