Update README.md
Browse files
README.md
CHANGED
|
@@ -21,4 +21,34 @@ size_categories:
|
|
| 21 |
|
| 22 |
# Librusec dataset
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
# Librusec dataset
|
| 23 |
|
| 24 |
+
|
| 25 |
+
## Table of Contents
|
| 26 |
+
- [Table of Contents](#table-of-contents)
|
| 27 |
+
- [Description](#description)
|
| 28 |
+
- [Usage](#usage)
|
| 29 |
+
|
| 30 |
+
## Description
|
| 31 |
+
|
| 32 |
+
**Summary:** Based on http://panchenko.me/data/russe/librusec_fb2.plain.gz. Uploaded here for convenience. Additional cleaning was performed.
|
| 33 |
+
|
| 34 |
+
**Script:** [create_librusec.py](https://github.com/IlyaGusev/rulm/blob/master/data_processing/create_librusec.py)
|
| 35 |
+
|
| 36 |
+
**Point of Contact:** [Ilya Gusev](ilya.gusev@phystech.edu)
|
| 37 |
+
|
| 38 |
+
**Languages:** Russian.
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
## Usage
|
| 42 |
+
|
| 43 |
+
Prerequisites:
|
| 44 |
+
```bash
|
| 45 |
+
pip install datasets zstandard jsonlines pysimdjson
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
Dataset iteration:
|
| 49 |
+
```python
|
| 50 |
+
from datasets import load_dataset
|
| 51 |
+
dataset = load_dataset('IlyaGusev/librusec', split="train", streaming=True)
|
| 52 |
+
for example in dataset:
|
| 53 |
+
print(example["text"])
|
| 54 |
+
```
|