File size: 1,174 Bytes
1ef024a
57797cf
 
1ef024a
 
57797cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language:
- en
---

# Dataset Description

This dataset contains the first paragraph of cleaned Wikipedia articles in English.

It was obtained by transorming the Wikipedia "20220301.en" dataset as follows:
```python
from datasets import load_dataset

dataset = load_dataset("wikipedia", "20220301.en")["train"]

def get_first_paragraph(example):
  example["text"] = example['text'].split('\n\n')[0]
  return example

dataset = dataset.map(get_first_paragraph)
```
# How to load dataset

You can load it by runnning:
```python
from datasets import load_dataset

load_dataset("abokbot/wikipedia-first-paragraph")

```

# Dataset Structure
An example looks as follows:
```
{
  'id': '124',
  'url': 'https://simple.wikipedia.org/wiki/European%20Council',
  'title': 'European Council',
  'text': 'The European Council (referred to as a European Summit) is the highest political body of the European Union. \
          It is made of all the heads of state or government of the Union's member states and with the President of the \
          European Commission. The country which holds the Presidency of the Council of the European Union also leads its assemblies.'
}
```