uetchy commited on
Commit
7c643c6
1 Parent(s): aed3a39

chore: update infos

Browse files
Files changed (5) hide show
  1. .gitattributes +2 -16
  2. .gitignore +145 -0
  3. README.md +288 -0
  4. dataset-metadata.json +0 -3
  5. dataset_infos.json +21 -0
.gitattributes CHANGED
@@ -25,19 +25,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
25
  *.zip filter=lfs diff=lfs merge=lfs -text
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
28
- chats_flagged_2021-06.csv filter=lfs diff=lfs merge=lfs -text
29
- chats_nonflag_2021-02.csv filter=lfs diff=lfs merge=lfs -text
30
- chats_nonflag_2021-06.csv filter=lfs diff=lfs merge=lfs -text
31
- chats_flagged_2021-03.csv filter=lfs diff=lfs merge=lfs -text
32
- chats_nonflag_2021-04.csv filter=lfs diff=lfs merge=lfs -text
33
- chats_nonflag_2021-07.csv filter=lfs diff=lfs merge=lfs -text
34
- chats_flagged_2021-07.csv filter=lfs diff=lfs merge=lfs -text
35
- chats_flagged_2021-02.csv filter=lfs diff=lfs merge=lfs -text
36
- chats_flagged_2021-04.csv filter=lfs diff=lfs merge=lfs -text
37
- chats_nonflag_2021-03.csv filter=lfs diff=lfs merge=lfs -text
38
- chats_nonflag_2021-08.csv filter=lfs diff=lfs merge=lfs -text
39
- chats_flagged_2021-01.csv filter=lfs diff=lfs merge=lfs -text
40
- chats_flagged_2021-08.csv filter=lfs diff=lfs merge=lfs -text
41
- chats_nonflag_2021-01.csv filter=lfs diff=lfs merge=lfs -text
42
- chats_nonflag_2021-05.csv filter=lfs diff=lfs merge=lfs -text
43
- chats_flagged_2021-05.csv filter=lfs diff=lfs merge=lfs -text
25
  *.zip filter=lfs diff=lfs merge=lfs -text
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
28
+ *.csv filter=lfs diff=lfs merge=lfs -text
29
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.gitignore ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Created by https://www.toptal.com/developers/gitignore/api/python
3
+ # Edit at https://www.toptal.com/developers/gitignore?templates=python
4
+
5
+ ### Python ###
6
+ # Byte-compiled / optimized / DLL files
7
+ __pycache__/
8
+ *.py[cod]
9
+ *$py.class
10
+
11
+ # C extensions
12
+ *.so
13
+
14
+ # Distribution / packaging
15
+ .Python
16
+ build/
17
+ develop-eggs/
18
+ dist/
19
+ downloads/
20
+ eggs/
21
+ .eggs/
22
+ lib/
23
+ lib64/
24
+ parts/
25
+ sdist/
26
+ var/
27
+ wheels/
28
+ share/python-wheels/
29
+ *.egg-info/
30
+ .installed.cfg
31
+ *.egg
32
+ MANIFEST
33
+
34
+ # PyInstaller
35
+ # Usually these files are written by a python script from a template
36
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
37
+ *.manifest
38
+ *.spec
39
+
40
+ # Installer logs
41
+ pip-log.txt
42
+ pip-delete-this-directory.txt
43
+
44
+ # Unit test / coverage reports
45
+ htmlcov/
46
+ .tox/
47
+ .nox/
48
+ .coverage
49
+ .coverage.*
50
+ .cache
51
+ nosetests.xml
52
+ coverage.xml
53
+ *.cover
54
+ *.py,cover
55
+ .hypothesis/
56
+ .pytest_cache/
57
+ cover/
58
+
59
+ # Translations
60
+ *.mo
61
+ *.pot
62
+
63
+ # Django stuff:
64
+ *.log
65
+ local_settings.py
66
+ db.sqlite3
67
+ db.sqlite3-journal
68
+
69
+ # Flask stuff:
70
+ instance/
71
+ .webassets-cache
72
+
73
+ # Scrapy stuff:
74
+ .scrapy
75
+
76
+ # Sphinx documentation
77
+ docs/_build/
78
+
79
+ # PyBuilder
80
+ .pybuilder/
81
+ target/
82
+
83
+ # Jupyter Notebook
84
+ .ipynb_checkpoints
85
+
86
+ # IPython
87
+ profile_default/
88
+ ipython_config.py
89
+
90
+ # pyenv
91
+ # For a library or package, you might want to ignore these files since the code is
92
+ # intended to run in multiple environments; otherwise, check them in:
93
+ # .python-version
94
+
95
+ # pipenv
96
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
97
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
98
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
99
+ # install all needed dependencies.
100
+ #Pipfile.lock
101
+
102
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
103
+ __pypackages__/
104
+
105
+ # Celery stuff
106
+ celerybeat-schedule
107
+ celerybeat.pid
108
+
109
+ # SageMath parsed files
110
+ *.sage.py
111
+
112
+ # Environments
113
+ .env
114
+ .venv
115
+ env/
116
+ venv/
117
+ ENV/
118
+ env.bak/
119
+ venv.bak/
120
+
121
+ # Spyder project settings
122
+ .spyderproject
123
+ .spyproject
124
+
125
+ # Rope project settings
126
+ .ropeproject
127
+
128
+ # mkdocs documentation
129
+ /site
130
+
131
+ # mypy
132
+ .mypy_cache/
133
+ .dmypy.json
134
+ dmypy.json
135
+
136
+ # Pyre type checker
137
+ .pyre/
138
+
139
+ # pytype static type analyzer
140
+ .pytype/
141
+
142
+ # Cython debug symbols
143
+ cython_debug/
144
+
145
+ # End of https://www.toptal.com/developers/gitignore/api/python
README.md ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
133
+ | value | duration |
134
+ | ----------------- | ------------------------- |
135
+ | unknown | Indistinguishable |
136
+ | non-member | 0 |
137
+ | less than 1 month | < 1 month |
138
+ | 1 month | >= 1 month, < 2 months |
139
+ | 2 months | >= 2 months, < 6 months |
140
+ | 6 months | >= 6 months, < 12 months |
141
+ | 1 year | >= 12 months, < 24 months |
142
+ | 2 years | >= 24 months |
143
+
144
+ #### Pandas usage
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)
dataset-metadata.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "id": "uetchy/sensai"
3
- }
 
 
 
dataset_infos.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "default": {
3
+ "description": "VTuber 500M: Live Chat and Moderation Events",
4
+ "homepage": "https://github.com/holodata/sensai-dataset",
5
+ "license": "PDDL",
6
+ "splits": {
7
+ "train": {
8
+ "name": "train",
9
+ "num_bytes": 385090,
10
+ "num_examples": 5452,
11
+ "dataset_name": "trec"
12
+ },
13
+ "test": {
14
+ "name": "test",
15
+ "num_bytes": 27983,
16
+ "num_examples": 500,
17
+ "dataset_name": "trec"
18
+ }
19
+ }
20
+ }
21
+ }