File size: 618 Bytes
fa342c8 deea53e | 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 | ---
task_categories:
- token-classification
- text-classification
language:
- en
tags:
- wikipedia
- english
pretty_name: WIKI 727k
size_categories:
- 100K<n<1M
---
The original dataset repo url : [https://github.com/koomri/text-segmentation](https://github.com/koomri/text-segmentation)
for every wiki article text we use the following code to produce label and input text.
```python
label = []
text = ""
for line in data:
if line.startswith("========"):
if len(label) == 0:
continue
else:
label[-1] = 1
else:
text += line + "\n"
label.append(0)
``` |