File size: 427 Bytes
b60aa00 4bdd440 b60aa00 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
This dataset is sampled from `wikitext/wikitext-2-v1/train`.
Codes to generate this dataset:
```python
import datasets
dataset = datasets.load_dataset('wikitext', 'wikitext-2-v1')
selected = []
i = -1
while len(selected) < 24:
i += 1
text = dataset['train'][i]['text']
if 8 < len(text.split(' ')) <= 16 and '=' not in text:
selected.append(i)
tiny_dataset = dataset['train'].select(selected)
``` |