File size: 13,122 Bytes
536fdfc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0b694f0
b6922cd
0b694f0
 
536fdfc
 
 
 
 
25c8c16
 
 
 
 
 
 
 
 
 
 
536fdfc
25c8c16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9f447ff
 
25c8c16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58fa487
 
 
25c8c16
58fa487
25c8c16
58fa487
25c8c16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c324c4b
 
 
25c8c16
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
---
dataset_info:
  features:
  - name: text
    dtype: string
  - name: link
    dtype: string
  - name: token_count
    dtype: int64
  - name: section
    dtype: string
  - name: int_score
    dtype: int64
  - name: language
    dtype: string
  - name: language_probability
    dtype: float64
  splits:
  - name: train
    num_bytes: 147072848
    num_examples: 21921
  download_size: 86135867
  dataset_size: 147072848
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
license: mit
task_categories:
- text-generation
- text-classification
language:
- en
- yo
- ig
- ha
size_categories:
- 10K<n<100K
---

# Naijaweb Edu2 Dataset 🇳🇬


**Naijaweb Edu 2** is a subset of the [naijaweb dataset](https://huggingface.co/datasets/saheedniyi/naijaweb) with an educational score aboove 2 using the [fineweb classifier](https://huggingface.co/HuggingFaceFW/fineweb-edu-classifier). The initial fineweb dataset was web scraped from web pages popular among Nigerians, providing a rich resource for modeling Nigerian linguistic and cultural contexts.

## Dataset Summary

| Features       | Data Types  |
|----------------|-------------|
| text           | string      |
| link           | string      |
| token_count    | int64       |
| section        | string      |
| int_score      | int64       |
| language       | string      |
| language_probability | float64 |

## Data Collection

The initial fineweb dataset was collected from **Nairaland.com**, extracting **about 30 million unique posts** from 19 different sections of the site. Additionally, **1,289,195 outbound links** were extracted from these posts. The content of these web pages was extracted using **Trafilatura**, a popular library for web scraping and content extraction.
The full data collection can be found [in this repo](https://github.com/saheedniyi02/Naijaweb), kindly give a star ⭐.
## Data Cleaning

The cleaning process was conducted using **[Datatrove](https://github.com/huggingface/datatrove)**, the same library employed in cleaning the **[FineWeb](https://huggingface.co/datasets/HuggingFaceFW/fineweb)** dataset, which is known for its high quality. The data cleaning process involved multiple stages of deduplication, filtering, and normalization to ensure the dataset's quality matches that of other high-performing datasets.

### Data Cleaning Procedure:
- **URL Filtering** 
- **Repitition and quality filtering:**
- **Personal Identifiable Information (PII) Removal** 

## Example Entry

Each data point contains the following fields:
- `text`: the main body of the post or web page
- `link`: the original URL of the source content
- `token_count`: the number of GPT2 tokens in the `text` field
- `section`: the Nairaland section where the post was found
- `int_score`: an integer representation of the 'educational quality'  of the data based on [fineweb's webpage educational classifier](https://huggingface.co/HuggingFaceFW/fineweb-edu-classifier)
- `language`: detected language of the text (e.g., `en`, `yo`, `ha`, `ig`)
- `language_probability`: the confidence score of the language detection algorithm

An example looks as follows:
```
{
'text': 'By Tony Eluemunor\nOne terrible aspect of the Asaba massacre is not only that it actually occurred, but that 53 years after that grim and despicable flaunting of the worst of the human spirit anywhere, Nigeria does not recognise it as a national tragedy.\nThus, every 7th of October, only the people of Asaba commemorate that gruesome mass murder, which meets all definitions of GENOCIDE. The Encyclopaedia Britannica defines genocide as “the deliberate and systematic destruction of a group of people because of their ethnicity, nationality, religion, or race. The term, derived from the Greek genos (“race,” “tribe,” or “nation”) and the Latin cide (“killing”), was coined by Raphael Lemkin, a Polish-born jurist who served as an adviser to the U.S. Department of War during World War II.\nThe term was coined in 1943 by the Jewish-Polish lawyer Raphael Lemkin who combined the Greek word “genos” (race or tribe) with the Latin word “cide” (to kill).\nThat such an unprovoked gruesome mass murder of hundreds of people took place at Asaba, is not in question anymore. What really happened that October 1967? As Emmanuel Andrew Chukwuedo Nwanze, BSc. MSc. Ph.D. DIS, Professor of Neurobiochemistry and former Vice-Chancellor, University of Benin said in a lecture: “Asaba people came out from their homes and places of other engagements in response to a call to come out and welcome and receive the conquering Federal troops. When the troops requested them to separate into groups of males and females, they naively complied, never having ever witnessed such an event before. The men were marched away to the more secluded axis of Ogbe Osowe- Ilo-Umuaji-Ogbe Ilo. When the guns started blazing it was too late to escape. The staccato over, only the groans of those on the throes of death could be heard with blood flowing freely: indeed ‘blood on the Niger’. The few alive or not completely dead who had been clobbered to the ground by the falling dead could be heard calling on the soldiers to come on and finish the job. Hence the weak cries of “See me, I never die o”\nMr. Chiedu “Cassy” Juwah was about ten years old then. He recalled that “People were dancing in a welcome party at OgbeIlo field. Then soldiers stopped the music and a grim business began. That was how Asaba became a town of landladies. My cousin who had survived the pogrom at Kano, his dad and two elder brothers, were shot. I hid and returned home. The following day, 7th, we were rounded up and shepherded to Oma, opposite today’s Grand Hotel, That’s where we were separated. At Ogbe Osowe, the men were separated from the boys and the women, and I, a boy, joined the women in going to the Convent, now St. John Bosco’s Church at Nnebisi Rd, and Ogbe Osowe became a killing field. My brother, Augustine Juwah, who passed out of St. Anthony’s College in 1964, pretended to be dead and hid among dead bodies there as a machine gun belched fire and death. By 8.pm he made his way home and we started our flight; first to Achala, and from there to Ubulu-Uku. Some people returned home days later and were still killed in the house-to-house combing by the military.”\nThe Federal troops thundered into Asaba on the 5th. The Biafrans had melted away as the immediate commander, the late Col. Joe Achizia (a son of Asaba), opted to retreat to Onitsha as a lorry load of cutlass was all he was given to defend Asaba with. He blew up the Niger Bridge. Then, the indiscriminate killing started. It turned horrendous on the 6th and became hellish on the 7th.\nAbout 1, 000 persons died in Asaba in those gruesome three days. Yet, more died later as the town’s folks fled into the bush, trying to escape to the nearby towns and villages. Many were caught outside the town while escaping and were decimated, others died from hunger and unhealed wounds inside the bush.\nIn fact, the killing spilled into Ogwashi-Uku, and several other towns in the Anioma Delta North Senatorial District. In Ishiagwu, a coastal village to which Biafrans would travel to from around Oguta to buy food stuff, having crossed the lordly River Niger by canoe, the Federal troops visited one night and simply killed 400 people who failed to escape and burnt down the village – even as a General Cyril Iweze, a son of Ishiagwu, was fighting on the Federal side. Ibusa suffered genocide and the entire surviving population fled into the bush.\nREAD ALSO: Boko Haram sacks two communities in Borno\nAs late into the war as 1969, the killings were still on. A Benin-City based medical Doctor, Patrick Anyafulu said: In 1969, a company of Federal troops was ambushed and decimated by Biafran troops on the road leading to Asaba from Oko. That incident brought the horrors of war to my sleepy, rustic village. The whole village was razed to the ground. We escaped death through Providence…a heavy rainstorm the previous night delayed their advance from Asaba, and fishermen who had gone to check their nets saw them and alerted the whole village. Shells were already landing in the village and the air was filled with the whine of bullets. We escaped into the forest and lived there until 1970!”\nSo, why has the Federal Government, which has recently acknowledged the evil inherent in denying the late MKO Abiola his June 1993 electoral victory, refused to even recognise the atrocity committed against Asaba and other Anioma towns? As hard as that insult upon injury is difficult to swallow, it is pertinent to remember that for years the Asaba massacre was a totally hushed up topic.\nA London Times correspondent, Bill Norris, who passed through Asaba in mid-October 1967, sent back photos of hellish destruction there and noted that the town appeared to be largely abandoned. But he said nothing about the genocide. He explained in a 2012 interview that he did not know about the massacre. The first mention of mass killing in Asaba appeared in the London Observer, almost four months later, when Africa correspondent Colin Legum conûrmed that Federal troops took part in the killing. However, his (second-hand) account claimed that a group of ‘implacably hostile’ Igbo attacked troops by surprise as they watched the welcome dance, leading to retaliation.\nEven both pro-Biafra and pro-Nigeria writers of book on the Civil War left the Asaba massacre well alone. The Nigerian Army made no attempt during or after the Civil War, to investigate the Asaba Massacre. Yet, The London Observer commented on it on 21 January 1968, Le Monde, the French evening newspaper, wrote about it on April 5, 1968, LOOK, the British magazine, did same and even a Canadian Member of Parliament, who served as the UN Observer, Stephen Lewis, was mentioned in the London Observer on October 11, 1968. Yet, the then Nigerian High Commissioner to Britain, Brig. B. O. Ogundipe called the reports “wild rumours”. The Times of London reported in 1968 that Biafran propaganda had instilled fear of federal soldiers in Igbo people, but these fears were unfounded. A year later, the Times reported that an international observer team had “been unable to ûnd one single trace of mass killings of Ibos”.\nAn Asaba indigene, Sylvester Okocha, then senior civil servant in Benin, wrote to the International Committee of the Red Cross describing what had just happened. His letter was intercepted by the military, he was arrested, tortured and incarcerated in Lagos.\nNow, the truth is out…and it is horrendous. There are only two choices left for Nigeria: to keep ignoring this sordid fact and allow the sore to fester and become food for agents of national disunity or address it so that healing can begin. Yet, the silence has really ended, what continues is national self-deception. An Asaba indigene, and journalist, Emma Okocha published the book Blood on the Niger in 1994 (his father was a victim of that massacre). It lifted the lid off that story and has remained a condemnation on the government’s official silence on the Asaba massacre – that terrible blot on Nigeria’s history.\nComments expressed here do not reflect the opinions of Vanguard newspapers or any employee thereof.',
 'link': 'https://www.vanguardngr.com/2020/10/asaba-massacre-terrible-blot-on-nigerias-history/',
 'token_count': 1905,
 'section': 'Politics',
 'int_score': 3,
 'language': 'en',
 'language_probability': 0.9999027252197266
}
```

## How to Load the Dataset

To load the dataset using Hugging Face's `datasets` library:

```python
from datasets import load_dataset

dataset = load_dataset("saheedniyi/naijaweb-edu2")
```

## Social Impact

Naijaweb was created to make Nigerian web data more accessible, providing researchers and developers with a dataset rich in Nigerian contexts across various domains such as **Politics**, **Education**, **Business**, and **Health**.

## Bias and Ethical Considerations

Since the data is collected from publicly available web pages, inherent biases present in the sources may be reflected in the dataset. These biases can manifest in areas such as **language**, **ideology**, or **topic representation**. Users should be mindful of these potential biases when developing models, especially for sensitive areas like **legal** or **medical** information.

## Sections of the Dataset

The dataset comprises content from 19 different sections of **Nairaland.com**, covering topics such as **Politics**, **Education**, **Business**, and **Health**.

Citation
If you use the Naijaweb-edu dataset in your research, please cite it as follows:

Citation
If you use the Naijaweb dataset in your research, please cite it as follows:
```
@dataset{naijawebedu2_2024,
  author    = {Saheed Azeez},
  title     = {Naijaweb-Edu2: A Web Scraped Nigerian Context Dataset},
  year      = {2024},
  publisher = {Hugging Face Datasets},
  version   = {1.0.0},
  url       = {https://huggingface.co/datasets/saheedniyi/naijaweb-edu2},
}
```