Datasets:
Tasks:
Text Generation
Size:
10K - 100K
Comments + meta
Browse files- README.md +74 -24
- habr.jsonl.zst +2 -2
- habr.py +41 -16
README.md
CHANGED
@@ -1,44 +1,94 @@
|
|
1 |
---
|
2 |
dataset_info:
|
3 |
features:
|
4 |
-
- name:
|
|
|
|
|
5 |
dtype: string
|
6 |
-
- name:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
struct:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
- name: id
|
|
|
|
|
|
|
|
|
9 |
dtype: uint32
|
10 |
- name: time_published
|
11 |
dtype: uint64
|
12 |
-
- name:
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
dtype: string
|
14 |
- name: author
|
15 |
dtype: string
|
16 |
-
- name:
|
17 |
-
|
18 |
-
- name: commentsCount
|
19 |
-
dtype: uint32
|
20 |
-
- name: favoritesCount
|
21 |
-
dtype: uint32
|
22 |
-
- name: readingCount
|
23 |
-
dtype: uint32
|
24 |
-
- name: score
|
25 |
-
dtype: int32
|
26 |
-
- name: votesCount
|
27 |
-
dtype: int32
|
28 |
-
- name: votesCountPlus
|
29 |
-
dtype: int32
|
30 |
-
- name: votesCountMinus
|
31 |
-
dtype: int32
|
32 |
splits:
|
33 |
- name: train
|
34 |
-
num_bytes:
|
35 |
-
num_examples:
|
36 |
-
download_size:
|
37 |
-
dataset_size:
|
38 |
task_categories:
|
39 |
- text-generation
|
40 |
language:
|
41 |
- ru
|
42 |
---
|
43 |
|
44 |
-
# Habrahabr dataset
|
|
|
1 |
---
|
2 |
dataset_info:
|
3 |
features:
|
4 |
+
- name: id
|
5 |
+
dtype: uint32
|
6 |
+
- name: language
|
7 |
dtype: string
|
8 |
+
- name: url
|
9 |
+
dtype: string
|
10 |
+
- name: title
|
11 |
+
dtype: string
|
12 |
+
- name: text_markdown
|
13 |
+
dtype: string
|
14 |
+
- name: text_html
|
15 |
+
dtype: string
|
16 |
+
- name: author
|
17 |
+
dtype: string
|
18 |
+
- name: original_author
|
19 |
+
dtype: string
|
20 |
+
- name: original_url
|
21 |
+
dtype: string
|
22 |
+
- name: lead_html
|
23 |
+
dtype: string
|
24 |
+
- name: lead_markdown
|
25 |
+
dtype: string
|
26 |
+
- name: type
|
27 |
+
dtype: string
|
28 |
+
- name: time_published
|
29 |
+
dtype: uint64
|
30 |
+
- name: statistics
|
31 |
struct:
|
32 |
+
- name: commentsCount
|
33 |
+
dtype: uint32
|
34 |
+
- name: favoritesCount
|
35 |
+
dtype: uint32
|
36 |
+
- name: readingCount
|
37 |
+
dtype: uint32
|
38 |
+
- name: score
|
39 |
+
dtype: int32
|
40 |
+
- name: votesCount
|
41 |
+
dtype: int32
|
42 |
+
- name: votesCountPlus
|
43 |
+
dtype: int32
|
44 |
+
- name: votesCountMinus
|
45 |
+
dtype: int32
|
46 |
+
- name: labels
|
47 |
+
sequence: string
|
48 |
+
- name: hubs
|
49 |
+
sequence: string
|
50 |
+
- name: flows
|
51 |
+
sequence: string
|
52 |
+
- name: tags
|
53 |
+
sequence: string
|
54 |
+
- name: reading_time
|
55 |
+
dtype: uint32
|
56 |
+
- name: format
|
57 |
+
dtype: string
|
58 |
+
- name: complexity
|
59 |
+
dtype: string
|
60 |
+
- name: comments
|
61 |
+
sequence:
|
62 |
- name: id
|
63 |
+
dtype: uint64
|
64 |
+
- name: parent_id
|
65 |
+
dtype: uint64
|
66 |
+
- name: level
|
67 |
dtype: uint32
|
68 |
- name: time_published
|
69 |
dtype: uint64
|
70 |
+
- name: score
|
71 |
+
dtype: int32
|
72 |
+
- name: votes
|
73 |
+
dtype: uint32
|
74 |
+
- name: message_html
|
75 |
+
dtype: string
|
76 |
+
- name: message_markdown
|
77 |
dtype: string
|
78 |
- name: author
|
79 |
dtype: string
|
80 |
+
- name: children
|
81 |
+
sequence: uint64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
splits:
|
83 |
- name: train
|
84 |
+
num_bytes: 19968161329
|
85 |
+
num_examples: 302049
|
86 |
+
download_size: 3485570346
|
87 |
+
dataset_size: 19968161329
|
88 |
task_categories:
|
89 |
- text-generation
|
90 |
language:
|
91 |
- ru
|
92 |
---
|
93 |
|
94 |
+
# Habrahabr dataset
|
habr.jsonl.zst
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:64d76fa3c1fc9df749c4c20c4d80da8463a71337d80895a1aa41cee24328ced3
|
3 |
+
size 3485570346
|
habr.py
CHANGED
@@ -41,7 +41,7 @@ _DESCRIPTION = "Habrahabr dataset"
|
|
41 |
_URL = "habr.jsonl.zst"
|
42 |
|
43 |
|
44 |
-
class
|
45 |
"""Habrahabr dataset"""
|
46 |
|
47 |
VERSION = datasets.Version("0.0.1")
|
@@ -55,22 +55,47 @@ class RuLMDataset(datasets.GeneratorBasedBuilder):
|
|
55 |
def _info(self):
|
56 |
features = datasets.Features(
|
57 |
{
|
58 |
-
"
|
59 |
-
"
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
"time_published": datasets.Value("uint64"),
|
62 |
-
"
|
|
|
|
|
|
|
63 |
"author": datasets.Value("string"),
|
64 |
-
"
|
65 |
-
|
66 |
-
"favoritesCount": datasets.Value("uint32"),
|
67 |
-
"readingCount": datasets.Value("uint32"),
|
68 |
-
"score": datasets.Value("int32"),
|
69 |
-
"votesCount": datasets.Value("int32"),
|
70 |
-
"votesCountPlus": datasets.Value("int32"),
|
71 |
-
"votesCountMinus": datasets.Value("int32")
|
72 |
-
}
|
73 |
-
}
|
74 |
}
|
75 |
)
|
76 |
return datasets.DatasetInfo(
|
@@ -90,4 +115,4 @@ class RuLMDataset(datasets.GeneratorBasedBuilder):
|
|
90 |
reader_stream = io.BufferedReader(cctx.stream_reader(f))
|
91 |
reader = jsonlines.Reader(reader_stream, loads=parse_json)
|
92 |
for id_, item in enumerate(reader):
|
93 |
-
yield id_,
|
|
|
41 |
_URL = "habr.jsonl.zst"
|
42 |
|
43 |
|
44 |
+
class HabrDataset(datasets.GeneratorBasedBuilder):
|
45 |
"""Habrahabr dataset"""
|
46 |
|
47 |
VERSION = datasets.Version("0.0.1")
|
|
|
55 |
def _info(self):
|
56 |
features = datasets.Features(
|
57 |
{
|
58 |
+
"id": datasets.Value("uint32"),
|
59 |
+
"language": datasets.Value("string"),
|
60 |
+
"url": datasets.Value("string"),
|
61 |
+
"title": datasets.Value("string"),
|
62 |
+
"text_markdown": datasets.Value("string"),
|
63 |
+
"text_html": datasets.Value("string"),
|
64 |
+
"author": datasets.Value("string"),
|
65 |
+
"original_author": datasets.Value("string"),
|
66 |
+
"original_url": datasets.Value("string"),
|
67 |
+
"lead_html": datasets.Value("string"),
|
68 |
+
"lead_markdown": datasets.Value("string"),
|
69 |
+
"type": datasets.Value("string"),
|
70 |
+
"time_published": datasets.Value("uint64"),
|
71 |
+
"statistics": {
|
72 |
+
"commentsCount": datasets.Value("uint32"),
|
73 |
+
"favoritesCount": datasets.Value("uint32"),
|
74 |
+
"readingCount": datasets.Value("uint32"),
|
75 |
+
"score": datasets.Value("int32"),
|
76 |
+
"votesCount": datasets.Value("int32"),
|
77 |
+
"votesCountPlus": datasets.Value("int32"),
|
78 |
+
"votesCountMinus": datasets.Value("int32")
|
79 |
+
},
|
80 |
+
"labels": datasets.Sequence(datasets.Value("string")),
|
81 |
+
"hubs": datasets.Sequence(datasets.Value("string")),
|
82 |
+
"flows": datasets.Sequence(datasets.Value("string")),
|
83 |
+
"tags": datasets.Sequence(datasets.Value("string")),
|
84 |
+
"reading_time": datasets.Value("uint32"),
|
85 |
+
"format": datasets.Value("string"),
|
86 |
+
"complexity": datasets.Value("string"),
|
87 |
+
"comments": datasets.Sequence(feature={
|
88 |
+
"id": datasets.Value("uint64"),
|
89 |
+
"parent_id": datasets.Value("uint64"),
|
90 |
+
"level": datasets.Value("uint32"),
|
91 |
"time_published": datasets.Value("uint64"),
|
92 |
+
"score": datasets.Value("int32"),
|
93 |
+
"votes": datasets.Value("uint32"),
|
94 |
+
"message_html": datasets.Value("string"),
|
95 |
+
"message_markdown": datasets.Value("string"),
|
96 |
"author": datasets.Value("string"),
|
97 |
+
"children": datasets.Sequence(datasets.Value("uint64"))
|
98 |
+
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
}
|
100 |
)
|
101 |
return datasets.DatasetInfo(
|
|
|
115 |
reader_stream = io.BufferedReader(cctx.stream_reader(f))
|
116 |
reader = jsonlines.Reader(reader_stream, loads=parse_json)
|
117 |
for id_, item in enumerate(reader):
|
118 |
+
yield id_, item
|