mini_wiki / README.md
xhluca's picture
Add 1k examples
6822423 verified
|
raw
history blame
4.18 kB
---
language:
- en
license: cc-by-sa-3.0
size_categories:
- n<1K
- 1K<n<10K
- 10K<n<100K
dataset_info:
- config_name: '100'
features:
- name: id
dtype: string
- name: url
dtype: string
- name: title
dtype: string
- name: text
dtype: string
splits:
- name: partial
num_bytes: 168960
num_examples: 100
- name: full
num_bytes: 315241.0851032817
num_examples: 100
download_size: 591654
dataset_size: 484201.0851032817
- config_name: 100k
features:
- name: id
dtype: string
- name: url
dtype: string
- name: title
dtype: string
- name: text
dtype: string
splits:
- name: full
num_bytes: 171032873
num_examples: 100000
- name: partial
num_bytes: 315241085.10328174
num_examples: 100000
download_size: 290303445
dataset_size: 486273958.10328174
- config_name: 10k
features:
- name: id
dtype: string
- name: url
dtype: string
- name: title
dtype: string
- name: text
dtype: string
splits:
- name: full
num_bytes: 17059273
num_examples: 10000
- name: partial
num_bytes: 31524108.51032817
num_examples: 10000
download_size: 29185968
dataset_size: 48583381.51032817
- config_name: 1k
features:
- name: id
dtype: string
- name: url
dtype: string
- name: title
dtype: string
- name: text
dtype: string
splits:
- name: full
num_bytes: 1701568
num_examples: 1000
- name: partial
num_bytes: 1701568
num_examples: 1000
download_size: 4068880
dataset_size: 3403136.0000000005
- config_name: 50k
features:
- name: id
dtype: string
- name: url
dtype: string
- name: title
dtype: string
- name: text
dtype: string
splits:
- name: full
num_bytes: 85492041
num_examples: 50000
- name: partial
num_bytes: 157620542.55164087
num_examples: 50000
download_size: 144690540
dataset_size: 243112583.55164087
- config_name: 5k
features:
- name: id
dtype: string
- name: url
dtype: string
- name: title
dtype: string
- name: text
dtype: string
splits:
- name: full
num_bytes: 8453838
num_examples: 5000
- name: partial
num_bytes: 15762054.255164085
num_examples: 5000
download_size: 14542194
dataset_size: 24215892.255164087
configs:
- config_name: '100'
data_files:
- split: full
path: 100/full-*
- split: partial
path: 100/partial-*
- config_name: 100k
data_files:
- split: full
path: 100k/full-*
- split: partial
path: 100k/partial-*
- config_name: 10k
data_files:
- split: full
path: 10k/full-*
- split: partial
path: 10k/partial-*
- config_name: 1k
data_files:
- split: full
path: 1k/full-*
- split: partial
path: 1k/partial-*
- config_name: 50k
data_files:
- split: full
path: 50k/full-*
- split: partial
path: 50k/partial-*
- config_name: 5k
data_files:
- split: full
path: 5k/full-*
- split: partial
path: 5k/partial-*
---
# `mini_wiki`
This is a sampled version of the [`wikimedia/wikipedia`](https://huggingface.co/datasets/wikimedia/wikipedia) dataset. This repository provides scripts to generate the 100, 1k, 5k, 10k, 50k, 100k samples of the dataset, based on the `"20231101.en"` version.
## Usage
There are two possible splits: `full`, which loads the entire article, or `partial`, which is a version that only contains the first 500 words of each article. It is recommended to use partial if you are performing retrieval and are only interested in the first paragraphs of the Wikipedia dataset.
Now, to run:
```python
from datasets import load_dataset
# Load the 100-sample, full version of the dataset:
data = load_dataset('xhluca/mini_wiki', name="100", split="full")
print(data)
# Load partial version with 1k, 5k, 10k, 50k, 100k samples
data = load_dataset('xhluca/mini_wiki', name="1k", split="partial")
data = load_dataset('xhluca/mini_wiki', name="5k", split="partial")
data = load_dataset('xhluca/mini_wiki', name="10k", split="partial")
data = load_dataset('xhluca/mini_wiki', name="50k", split="partial")
data = load_dataset('xhluca/mini_wiki', name="100k", split="partial")
```