File size: 2,255 Bytes
b987b99 46ec122 b987b99 46ec122 b987b99 46ec122 b987b99 46ec122 b987b99 28b99d1 b987b99 28b99d1 9a6d529 28b99d1 |
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 |
---
language:
- en
license: apache-2.0
size_categories:
- 100K<n<1M
source_datasets: pszemraj/simple_wikipedia
task_categories:
- text-generation
- fill-mask
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: validation
path: data/validation-*
- split: test
path: data/test-*
- config_name: original
data_files:
- split: train
path: original/train-*
- split: validation
path: original/validation-*
- split: test
path: original/test-*
dataset_info:
- config_name: default
features:
- name: id
dtype: string
- name: url
dtype: string
- name: title
dtype: string
- name: text
dtype: string
splits:
- name: train
num_bytes: 248051733
num_examples: 226242
- name: validation
num_bytes: 6910685
num_examples: 5954
- name: test
num_bytes: 6359625
num_examples: 5954
download_size: 152635605
dataset_size: 261322043
- config_name: original
features:
- name: id
dtype: string
- name: url
dtype: string
- name: title
dtype: string
- name: text
dtype: string
splits:
- name: train
num_bytes: 248051733
num_examples: 226242
- name: validation
num_bytes: 6910685
num_examples: 5954
- name: test
num_bytes: 6359625
num_examples: 5954
download_size: 152618788
dataset_size: 261322043
---
# Dataset Card for "simple_wikipedia_LM"
A filtered/edited version of [pszemraj/simple_wikipedia](https://huggingface.co/datasets/pszemraj/simple_wikipedia) that removes headings/contents that appear in the `text` column without any relevant text for them (_at least in the `simple` split_).
```python
import re
def split_on_headings(text):
headings = ["References", "Related pages", "Other websites", "Further reading"]
for heading in headings:
parts = re.split(
r"^\s*" + re.escape(heading) + r".*$", text, flags=re.MULTILINE
)
if len(parts) > 1:
return parts[0].strip()
return text
text = """
Central Zazaki is a dialect of the Zazaki language. It is spoken in Eastern Anatolia Region of Turkey.
Related pages
Zazaki
Central Anatolia Region
Other websites
example.com
"""
print(split_on_headings(text))
``` |