Update README.md
Browse files
README.md
CHANGED
|
@@ -10,4 +10,23 @@ tags:
|
|
| 10 |
pretty_name: WIKI 727k
|
| 11 |
size_categories:
|
| 12 |
- 100K<n<1M
|
| 13 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
pretty_name: WIKI 727k
|
| 11 |
size_categories:
|
| 12 |
- 100K<n<1M
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
The original dataset repo url : [https://github.com/koomri/text-segmentation](https://github.com/koomri/text-segmentation)
|
| 17 |
+
|
| 18 |
+
for every wiki article text we use the following code to produce label and input text.
|
| 19 |
+
|
| 20 |
+
```python
|
| 21 |
+
label = []
|
| 22 |
+
text = ""
|
| 23 |
+
for line in data:
|
| 24 |
+
if line.startswith("========"):
|
| 25 |
+
if len(label) == 0:
|
| 26 |
+
continue
|
| 27 |
+
else:
|
| 28 |
+
label[-1] = 1
|
| 29 |
+
else:
|
| 30 |
+
text += line + "\n"
|
| 31 |
+
label.append(0)
|
| 32 |
+
```
|