Datasets:
Add passes for counting the occurrences of usernames within messages
Browse filesThis currently checks the source data only.
Identifies a large number of occurrences removable via html
- dataset.yaml +40 -2
dataset.yaml
CHANGED
@@ -168,6 +168,12 @@ _steps:
|
|
168 |
"\n\nThis will be a one x one between myself and Iikaitlynii based off the AMC television series The Walking Dead",
|
169 |
"Well I doubt he is going to be able to contact me if he is banned....can somebody please tell me why he got banned? I was just rping with him and he role plays well and then I saw he got banned for Ban-Evasion but what exactly was he doing to get banned?",
|
170 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
|
172 |
- step: &strip_unicode
|
173 |
type: Encoding
|
@@ -225,6 +231,7 @@ _steps:
|
|
225 |
config:
|
226 |
packedReplacements: [ 'pack/edge_cases.csv' ]
|
227 |
_passes:
|
|
|
228 |
- pass: &usernames
|
229 |
required:
|
230 |
- path: "data/rentry/bluemoon/bluemoon-fanbased-roleplays-1x1.csv"
|
@@ -240,14 +247,45 @@ _passes:
|
|
240 |
- type: FileConcatenate
|
241 |
sync: main
|
242 |
config:
|
243 |
-
path: 'pack/gen/
|
244 |
files: [ 'out/usernames_*.csv' ]
|
245 |
ignoreDuplicateLines: true
|
246 |
eol: "\r\n"
|
247 |
delete: true
|
248 |
artifacts:
|
249 |
-
- file: 'pack/gen/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
sha512: ffcc8aa980f4d8b0cace9092280d07215337cc316cb3fa45742a5f5a735d21a31f581d27884a414df21ac99616d14c7ebec1ab68a5766c10faa4b1564ceb7c20
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
|
252 |
- pass: &clean
|
253 |
required:
|
|
|
168 |
"\n\nThis will be a one x one between myself and Iikaitlynii based off the AMC television series The Walking Dead",
|
169 |
"Well I doubt he is going to be able to contact me if he is banned....can somebody please tell me why he got banned? I was just rping with him and he role plays well and then I saw he got banned for Ban-Evasion but what exactly was he doing to get banned?",
|
170 |
]
|
171 |
+
- step: &strip_usernames
|
172 |
+
type: ExactReplace
|
173 |
+
pack: [ 'pack/gen/usernames.csv' ]
|
174 |
+
config:
|
175 |
+
caseSensitive: true
|
176 |
+
packedReplacements: [ 'pack/gen/usernames.csv' ]
|
177 |
|
178 |
- step: &strip_unicode
|
179 |
type: Encoding
|
|
|
231 |
config:
|
232 |
packedReplacements: [ 'pack/edge_cases.csv' ]
|
233 |
_passes:
|
234 |
+
# Collect all usernames from source data
|
235 |
- pass: &usernames
|
236 |
required:
|
237 |
- path: "data/rentry/bluemoon/bluemoon-fanbased-roleplays-1x1.csv"
|
|
|
247 |
- type: FileConcatenate
|
248 |
sync: main
|
249 |
config:
|
250 |
+
path: 'pack/gen/usernames_all.csv'
|
251 |
files: [ 'out/usernames_*.csv' ]
|
252 |
ignoreDuplicateLines: true
|
253 |
eol: "\r\n"
|
254 |
delete: true
|
255 |
artifacts:
|
256 |
+
- file: 'pack/gen/usernames_all.csv'
|
257 |
+
sha512: ffcc8aa980f4d8b0cace9092280d07215337cc316cb3fa45742a5f5a735d21a31f581d27884a414df21ac99616d14c7ebec1ab68a5766c10faa4b1564ceb7c20
|
258 |
+
|
259 |
+
|
260 |
+
# Count the occurrences of usernames in messages in the source data
|
261 |
+
- pass: &count_usernames
|
262 |
+
required:
|
263 |
+
- path: "pack/gen/usernames_all.csv"
|
264 |
sha512: ffcc8aa980f4d8b0cace9092280d07215337cc316cb3fa45742a5f5a735d21a31f581d27884a414df21ac99616d14c7ebec1ab68a5766c10faa4b1564ceb7c20
|
265 |
+
- path: "data/rentry/bluemoon/bluemoon-fanbased-roleplays-1x1.csv"
|
266 |
+
sha512: f31d6bd278bc4211736d6aace3917cd0c1d0143bec9bf9d07054f5f9b32060e17399b6ea0935774b2271ac45a88309a60ef8eec8c4ac5283d1b353a255529cc5
|
267 |
+
steps:
|
268 |
+
- *bluemoon
|
269 |
+
- type: StatsCountOccurrences
|
270 |
+
description: "Count occurrences of usernames."
|
271 |
+
pack: [ 'pack/gen/usernames_all.csv' ]
|
272 |
+
config:
|
273 |
+
path: 'out/usernames_counted_%worker%.csv'
|
274 |
+
packedPatterns: [ 'pack/gen/usernames_all.csv' ]
|
275 |
+
countCol: 2
|
276 |
+
regex: false
|
277 |
+
min: 1
|
278 |
+
- type: StatsAddColMerge
|
279 |
+
description: "Merge username count csv files"
|
280 |
+
sync: main
|
281 |
+
config:
|
282 |
+
path: 'pack/gen/usernames.csv'
|
283 |
+
files: [ 'out/usernames_counted_*.csv' ]
|
284 |
+
cols: [ 2 ]
|
285 |
+
min: 1
|
286 |
+
artifacts:
|
287 |
+
- file: 'pack/gen/usernames.csv'
|
288 |
+
|
289 |
|
290 |
- pass: &clean
|
291 |
required:
|