uetchy commited on
Commit
79dcd86
1 Parent(s): 9a22a89

chore: fix docs

Browse files
Files changed (1) hide show
  1. README.md +28 -218
README.md CHANGED
@@ -1,132 +1,43 @@
1
- ![Header](https://github.com/holodata/vtuber-livechat-dataset/blob/master/.github/kaggle-dataset-header.png?raw=true)
2
 
3
- # VTuber 500M: Live Chat and Moderation Events
4
-
5
- VTuber 500M is a huge collection of hundreds of millions of live chat, super chat, and moderation events (ban and deletion) all across Virtual YouTubers' live streams, ready for academic research and any kind of NLP projects.
6
 
7
- Download the dataset from [Kaggle Datasets](https://www.kaggle.com/uetchy/vtuber-livechat) and join `#livechat-dataset` channel on [holodata Discord](https://holodata.org/discord) for discussions.
8
 
9
  ## Provenance
10
 
11
- - **Source:** YouTube live chat events collected by our [Honeybee](https://github.com/holodata/honeybee) cluster. [Holodex](https://holodex.net) is a stream index provider for Honeybee which covers Hololive, Nijisanji, 774inc, etc.
12
- - **Temporal Coverage:**
13
- - Chats: from 2021-01-15T05:15:33Z
14
- - Superchats: from 2021-03-16T08:19:38Z
15
- - **Update Frequency:**
16
- - At least once per month
17
 
18
  ## Research Ideas
19
 
20
  - Toxic Chat Classification
21
  - Spam Detection
22
- - Demographic Visualization
23
- - Superchat Analysis
24
  - Sentence Transformer for Live Chats
25
 
26
- See [public notebooks](https://www.kaggle.com/uetchy/vtuber-livechat/code) for ideas.
27
-
28
- > We employed [Honeybee](https://github.com/holodata/honeybee) cluster to collect real-time live chat events across major Vtubers' live streams. All sensitive data such as author name or author profile image are omitted from the dataset, and author channel id is anonymized by SHA-1 hashing algorithm with a grain of salt.
29
-
30
- ## Versions
31
-
32
- ### Standard version
33
-
34
- Standard version is available at [Kaggle Datasets](https://www.kaggle.com/uetchy/vtuber-livechat).
35
-
36
- | filename | summary | size |
37
- | ---------------------- | -------------------------------- | -------- |
38
- | `channels.csv` | Channel index | < 1 MB |
39
- | `chat_stats.csv` | Chat statistics | < 1 MB |
40
- | `superchat_stats.csv` | Super Chat statistics | < 1 MB |
41
- | `chats_%Y-%m.csv` | Live chat events (~ 500,000,000) | ~ 50 GB |
42
- | `superchats_%Y-%m.csv` | Super chat events (~ 2,000,000) | ~ 200 MB |
43
- | `deletion_events.csv` | Deletion events | ~ 150 MB |
44
- | `ban_events.csv` | Ban events | ~ 25 MB |
45
 
46
- ### Full version
47
-
48
- Full version is only available to those approved by the admins. If you are interested in conducting research or analysis using the dataset, please reach us at `#livechat-dataset` channel on [holodata Discord server](https://holodata.org/discord) or at `uechiy@acm.org` (for organizations).
49
-
50
- | filename | summary | size |
51
- | ---------------------- | ---------------------------------- | -------- |
52
- | `channels.csv` | Channel index | < 1 MB |
53
- | `chat_stats.csv` | Chat statistics | < 1 MB |
54
- | `superchat_stats.csv` | Super Chat statistics | < 1 MB |
55
- | `chats_%Y-%m.csv` | Live chat messages (~ 500,000,000) | ~ 90 GB |
56
- | `superchats_%Y-%m.csv` | Super chat messages (~ 2,000,000) | ~ 400 MB |
57
- | `deletion_events.csv` | Deletion events | ~ 150 MB |
58
- | `ban_events.csv` | Ban events | ~ 25 MB |
59
-
60
- ### [❤️‍🩹 Sensai](https://github.com/holodata/sensai-dataset)
61
-
62
- Sensai is a toxic chat dataset consists of live chats from Virtual YouTubers' live streams.
63
 
64
  | filename | summary | size |
65
  | ------------------------- | -------------------------------------------------------------- | -------- |
66
  | `chats_flagged_%Y-%m.csv` | Chats flagged as either deleted or banned by mods (3,100,000+) | ~ 400 MB |
67
- | `chats_nonflag_%Y-%m.csv` | Non-flagged chats (3,000,000+) | ~ 300 MB |
68
-
69
- ## Dataset Breakdown
70
 
71
- > Ban and deletion are equivalent to `markChatItemsByAuthorAsDeletedAction` and `markChatItemAsDeletedAction` respectively.
 
72
 
73
- ### Channels (`channels.csv`)
74
-
75
- | column | type | description |
76
- | ----------------- | --------------- | ---------------------- |
77
- | channelId | string | channel id |
78
- | name | string | channel name |
79
- | englishName | nullable string | channel name (English) |
80
- | affiliation | string | channel affiliation |
81
- | group | nullable string | group |
82
- | subscriptionCount | number | subscription count |
83
- | videoCount | number | uploads count |
84
- | photo | string | channel icon |
85
-
86
- Inactive channels have `INACTIVE` in `group` column.
87
-
88
- ### Chat Statistics (`chat_stats.csv`)
89
-
90
- | column | type | description |
91
- | -------------- | ------ | -------------------------------------------------- |
92
- | channelId | string | channel id |
93
- | period | string | interested period (%Y-%M) |
94
- | chats | number | number of chats |
95
- | memberChats | number | number of chats with membership status attached |
96
- | uniqueChatters | number | number of unique chatters |
97
- | uniqueMembers | number | number of unique members appeared on live chat |
98
- | bannedChatters | number | number of unique chatters marked as banned by mods |
99
- | deletedChats | number | number of chats deleted by mods |
100
-
101
- ### Super Chat Statistics (`superchat_stats.csv`)
102
-
103
- | column | type | description |
104
- | -------------------- | ------ | ---------------------------------- |
105
- | channelId | string | channel id |
106
- | period | string | interested period (%Y-%M) |
107
- | superChats | number | number of super chats |
108
- | uniqueSuperChatters | number | number of unique super chatters |
109
- | totalSC | number | total amount of super chats (JPY) |
110
- | averageSC | number | average amount of super chat (JPY) |
111
- | totalMessageLength | number | total message length |
112
- | averageMessageLength | number | average mesage length |
113
- | mostFrequentCurrency | string | most frequent currency |
114
- | mostFrequentColor | string | most frequent color |
115
 
116
  ### Chats (`chats_%Y-%m.csv`)
117
 
118
- | column | type | description | in standard version |
119
- | --------------- | ---------------- | ---------------------------- | ------------------------ |
120
- | timestamp | string | ISO 8601 UTC timestamp | seconds are omitted |
121
- | id | string | anonymized chat id | N/A |
122
- | authorChannelId | string | anonymized author channel id | |
123
- | channelId | string | source channel id | |
124
- | videoId | string | source video id | |
125
- | body | string | chat message | N/A |
126
- | membership | string | membership status | N/A |
127
- | isMember | nullable boolean | is member (null if unknown) | only in standard version |
128
- | isModerator | boolean | is channel moderator | N/A |
129
- | isVerified | boolean | is verified account | N/A |
130
 
131
  #### Membership status
132
 
@@ -145,144 +56,43 @@ Inactive channels have `INACTIVE` in `group` column.
145
 
146
  Set `keep_default_na` to `False` and `na_values` to `''` in `read_csv`. Otherwise, chat message like `NA` would incorrectly be treated as NaN value.
147
 
148
- ```python
149
- chats = pd.read_csv('../input/vtuber-livechat/chats_2021-03.csv',
150
- na_values='',
151
- keep_default_na=False,
152
- index_col='timestamp',
153
- parse_dates=True)
154
- ```
155
-
156
- ### Superchats (`chats_:year:-:month:.csv`)
157
-
158
- | column | type | description | in standard version |
159
- | --------------- | --------------- | ---------------------------- | ------------------- |
160
- | timestamp | string | ISO 8601 UTC timestamp | seconds are omitted |
161
- | amount | number | purchased amount | |
162
- | currency | string | three-letter currency symbol | |
163
- | color | string | color | N/A |
164
- | significance | number | significance | |
165
- | body | nullable string | chat message | N/A |
166
- | id | string | anonymized chat id | N/A |
167
- | authorChannelId | string | anonymized author channel id | |
168
- | videoId | string | source video id | N/A |
169
- | channelId | string | source channel id | |
170
-
171
- #### Color and Significance
172
-
173
- | color | significance | purchase amount (¥) | purchase amount ($) | max. message length |
174
- | --------- | ------------ | ------------------- | ------------------- | ------------------- |
175
- | blue | 1 | ¥ 100 - 199 | $ 1.00 - 1.99 | 0 |
176
- | lightblue | 2 | ¥ 200 - 499 | $ 2.00 - 4.99 | 50 |
177
- | green | 3 | ¥ 500 - 999 | $ 5.00 - 9.99 | 150 |
178
- | yellow | 4 | ¥ 1000 - 1999 | $ 10.00 - 19.99 | 200 |
179
- | orange | 5 | ¥ 2000 - 4999 | $ 20.00 - 49.99 | 225 |
180
- | magenta | 6 | ¥ 5000 - 9999 | $ 50.00 - 99.99 | 250 |
181
- | red | 7 | ¥ 10000 - 50000 | $ 100.00 - 500.00 | 270 - 350 |
182
-
183
- #### Pandas usage
184
-
185
- Set `keep_default_na` to `False` and `na_values` to `''` in `read_csv`. Otherwise, chat message like `NA` would incorrectly be treated as NaN value.
186
-
187
  ```python
188
  import pandas as pd
189
  from glob import iglob
190
 
191
- sc = pd.concat([
192
  pd.read_csv(f,
193
  na_values='',
194
- keep_default_na=False,
195
- index_col='timestamp',
196
- parse_dates=True)
197
- for f in iglob('../input/vtuber-livechat/superchats_*.csv')
198
  ],
199
- ignore_index=False)
200
- sc.sort_index(inplace=True)
201
- ```
202
-
203
- ### Deletion Events (`deletion_events.csv`)
204
-
205
- | column | type | description |
206
- | --------- | ------- | ---------------------------- |
207
- | timestamp | string | UTC timestamp |
208
- | id | string | anonymized chat id |
209
- | retracted | boolean | is deleted by author oneself |
210
- | videoId | string | source video id |
211
- | channelId | string | source channel id |
212
-
213
- #### Pandas usage
214
-
215
- Insert `deleted_by_mod` column to `chats` DataFrame:
216
-
217
- ```python
218
- chats = pd.read_csv('../input/vtuber-livechat/chats_2021-03.csv',
219
- na_values='',
220
- keep_default_na=False)
221
- delet = pd.read_csv('../input/vtuber-livechat/deletion_events.csv',
222
- usecols=['id', 'retracted'])
223
-
224
- delet = delet[delet['retracted'] == 0]
225
-
226
- delet['deleted_by_mod'] = True
227
- chats = pd.merge(chats, delet[['id', 'deleted_by_mod']], how='left')
228
- chats['deleted_by_mod'].fillna(False, inplace=True)
229
- ```
230
-
231
- ### Ban Events (`ban_events.csv`)
232
-
233
- Here **Ban** means either to place user in time out or to permanently hide the user's comments on the channel's current and future live streams. This mixup is due to the fact that these actions are indistinguishable from others with the extracted data from `markChatItemsByAuthorAsDeletedAction` event.
234
-
235
- | column | type | description |
236
- | --------------- | ------ | --------------------- |
237
- | timestamp | string | UTC timestamp |
238
- | authorChannelId | string | anonymized channel id |
239
- | videoId | string | source video id |
240
- | channelId | string | source channel id |
241
-
242
- #### Pandas usage
243
-
244
- Insert `banned` column to `chats` DataFrame:
245
-
246
- ```python
247
- chats = pd.read_csv('../input/vtuber-livechat/chats_2021-03.csv',
248
- na_values='',
249
- keep_default_na=False)
250
- ban = pd.read_csv('../input/vtuber-livechat/ban_events.csv',
251
- usecols=['authorChannelId', 'videoId'])
252
-
253
- ban['banned'] = True
254
- chats = pd.merge(chats, ban, on=['authorChannelId', 'videoId'], how='left')
255
- chats['banned'].fillna(False, inplace=True)
256
  ```
257
 
258
  ## Consideration
259
 
260
  ### Anonymization
261
 
262
- `id` and `authorChannelId` are anonymized by SHA-1 hashing algorithm with a pinch of undisclosed salt.
263
 
264
  ### Handling Custom Emojis
265
 
266
  All custom emojis are replaced with a Unicode replacement character `U+FFFD`.
267
 
268
- ### Redundant Ban and Deletion Events
269
-
270
- Bans and deletions from multiple moderators for the same person or chat will be logged separately. For simplicity, you can safely ignore all but the first line recorded in time order.
271
-
272
  ## Citation
273
 
274
  ```latex
275
- @misc{vtuber-livechat-dataset,
276
  author={Yasuaki Uechi},
277
- title={VTuber 500M: Large Scale Virtual YouTubers Live Chat Dataset},
278
  year={2021},
279
- month={3},
280
  version={31},
281
- url={https://github.com/holodata/vtuber-livechat-dataset}
282
  }
283
  ```
284
 
285
  ## License
286
 
287
- - Code: [MIT License](https://github.com/holodata/vtuber-livechat-dataset/blob/master/LICENSE)
288
  - Dataset: [ODC Public Domain Dedication and Licence (PDDL)](https://opendatacommons.org/licenses/pddl/1-0/index.html)
1
+ # ❤️‍🩹 Sensai: Toxic Chat Dataset
2
 
3
+ Sensai is a toxic chat dataset consists of live chats from Virtual YouTubers' live streams.
 
 
4
 
5
+ Download the dataset from [Kaggle Datasets](https://www.kaggle.com/uetchy/sensai) and join `#livechat-dataset` channel on [holodata Discord](https://holodata.org/discord) for discussions.
6
 
7
  ## Provenance
8
 
9
+ - **Source:** YouTube Live Chat events (all streams covered by [Holodex](https://holodex.net), including Hololive, Nijisanji, 774inc, etc)
10
+ - **Temporal Coverage:** From 2021-01-15T05:15:33Z
11
+ - **Update Frequency:** At least once per month
 
 
 
12
 
13
  ## Research Ideas
14
 
15
  - Toxic Chat Classification
16
  - Spam Detection
 
 
17
  - Sentence Transformer for Live Chats
18
 
19
+ See [public notebooks](https://www.kaggle.com/uetchy/sensai/code) for ideas.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
+ ## Files
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  | filename | summary | size |
24
  | ------------------------- | -------------------------------------------------------------- | -------- |
25
  | `chats_flagged_%Y-%m.csv` | Chats flagged as either deleted or banned by mods (3,100,000+) | ~ 400 MB |
26
+ | `chats_nonflag_%Y-%m.csv` | Non-flagged chats (3,100,000+) | ~ 300 MB |
 
 
27
 
28
+ To make it a balanced dataset, the number of `chats_nonflags` is adjusted (randomly sampled) to be the same as `chats_flagged`.
29
+ Ban and deletion are equivalent to `markChatItemsByAuthorAsDeletedAction` and `markChatItemAsDeletedAction` respectively.
30
 
31
+ ## Dataset Breakdown
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
  ### Chats (`chats_%Y-%m.csv`)
34
 
35
+ | column | type | description |
36
+ | --------------- | ------ | ---------------------------- |
37
+ | body | string | chat message |
38
+ | membership | string | membership status |
39
+ | authorChannelId | string | anonymized author channel id |
40
+ | channelId | string | source channel id |
 
 
 
 
 
 
41
 
42
  #### Membership status
43
 
56
 
57
  Set `keep_default_na` to `False` and `na_values` to `''` in `read_csv`. Otherwise, chat message like `NA` would incorrectly be treated as NaN value.
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  ```python
60
  import pandas as pd
61
  from glob import iglob
62
 
63
+ flagged = pd.concat([
64
  pd.read_csv(f,
65
  na_values='',
66
+ keep_default_na=False)
67
+ for f in iglob('../input/sensai/chats_flagged_*.csv')
 
 
68
  ],
69
+ ignore_index=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  ```
71
 
72
  ## Consideration
73
 
74
  ### Anonymization
75
 
76
+ `authorChannelId` are anonymized by SHA-1 hashing algorithm with a pinch of undisclosed salt.
77
 
78
  ### Handling Custom Emojis
79
 
80
  All custom emojis are replaced with a Unicode replacement character `U+FFFD`.
81
 
 
 
 
 
82
  ## Citation
83
 
84
  ```latex
85
+ @misc{sensai-dataset,
86
  author={Yasuaki Uechi},
87
+ title={Sensai: Toxic Chat Dataset},
88
  year={2021},
89
+ month={8},
90
  version={31},
91
+ url={https://github.com/holodata/sensai-dataset}
92
  }
93
  ```
94
 
95
  ## License
96
 
97
+ - Code: [MIT License](https://github.com/holodata/sensai-dataset/blob/master/LICENSE)
98
  - Dataset: [ODC Public Domain Dedication and Licence (PDDL)](https://opendatacommons.org/licenses/pddl/1-0/index.html)