Datasets:
2 spelling mistakes, update descriptor for multi-pass support.
Browse files- bluemoon.json +2 -2
- dataset.yaml +44 -21
bluemoon.json
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:9381558c295e269058766e6691343b7c7e6eaa3f52c500673655de89f412fa5d
|
3 |
+
size 222763320
|
dataset.yaml
CHANGED
@@ -5,7 +5,7 @@ build:
|
|
5 |
conversationBatch: 100
|
6 |
cleanDirectory: [ 'out' ]
|
7 |
|
8 |
-
|
9 |
- reader: &bluemoon
|
10 |
type: csv
|
11 |
config:
|
@@ -14,13 +14,13 @@ readers:
|
|
14 |
from: 'message_username'
|
15 |
message: 'message'
|
16 |
|
17 |
-
|
18 |
- writer: &fastchat_pretty
|
19 |
type: fastchat
|
20 |
config:
|
21 |
indent: 2
|
22 |
|
23 |
-
|
24 |
- step: &extract_ooc
|
25 |
type: RegexExtract
|
26 |
description: "Extract OOC matches for examination"
|
@@ -65,7 +65,7 @@ debug_steps:
|
|
65 |
'^(_|])+(\b|\n)', '^(\s|\.|,|\|)+'
|
66 |
]
|
67 |
|
68 |
-
|
69 |
- step: &html_linebreaks
|
70 |
type: ExactReplace
|
71 |
description: "Convert html <br/> line breaks to \n"
|
@@ -184,7 +184,7 @@ steps:
|
|
184 |
description: "Spelling mistakes and typos."
|
185 |
config:
|
186 |
caseSensitive: false
|
187 |
-
replacements: [ [ "bow staff","bo staff" ], [ "possiable", "possible" ], [ "possiably", "possibly" ] ]
|
188 |
|
189 |
- step: &empty
|
190 |
type: FullMatch
|
@@ -259,19 +259,42 @@ steps:
|
|
259 |
[ "now what?))", "Continue." ],
|
260 |
]
|
261 |
|
262 |
-
|
263 |
-
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
conversationBatch: 100
|
6 |
cleanDirectory: [ 'out' ]
|
7 |
|
8 |
+
_readers:
|
9 |
- reader: &bluemoon
|
10 |
type: csv
|
11 |
config:
|
|
|
14 |
from: 'message_username'
|
15 |
message: 'message'
|
16 |
|
17 |
+
_writers:
|
18 |
- writer: &fastchat_pretty
|
19 |
type: fastchat
|
20 |
config:
|
21 |
indent: 2
|
22 |
|
23 |
+
_debug_steps:
|
24 |
- step: &extract_ooc
|
25 |
type: RegexExtract
|
26 |
description: "Extract OOC matches for examination"
|
|
|
65 |
'^(_|])+(\b|\n)', '^(\s|\.|,|\|)+'
|
66 |
]
|
67 |
|
68 |
+
_steps:
|
69 |
- step: &html_linebreaks
|
70 |
type: ExactReplace
|
71 |
description: "Convert html <br/> line breaks to \n"
|
|
|
184 |
description: "Spelling mistakes and typos."
|
185 |
config:
|
186 |
caseSensitive: false
|
187 |
+
replacements: [ [ "bow staff","bo staff" ], [ "possiable", "possible" ], [ "possiably", "possibly" ], [ "damamge", "damage" ], [ "didn t", "didn't" ] ]
|
188 |
|
189 |
- step: &empty
|
190 |
type: FullMatch
|
|
|
259 |
[ "now what?))", "Continue." ],
|
260 |
]
|
261 |
|
262 |
+
_passes:
|
263 |
+
- pass: &usernames
|
264 |
+
input:
|
265 |
+
- path: "data/rentry/bluemoon/bluemoon-fanbased-roleplays-1x1.csv"
|
266 |
+
sha512: f31d6bd278bc4211736d6aace3917cd0c1d0143bec9bf9d07054f5f9b32060e17399b6ea0935774b2271ac45a88309a60ef8eec8c4ac5283d1b353a255529cc5
|
267 |
+
reader: *bluemoon
|
268 |
+
steps:
|
269 |
+
- type: CsvExtract
|
270 |
+
description: "Extract usernames"
|
271 |
+
config:
|
272 |
+
path: 'out/usernames_%worker%.csv'
|
273 |
+
ignore_duplicates: true
|
274 |
+
fields: [ 'from' ]
|
275 |
+
output:
|
276 |
+
- path: "out/usernames.csv"
|
277 |
+
sha512: b05ce4d5bbf6a71cc4154e9373613911e8e849ff9442312aa8f79262bea45022deda9d084a3335e93ee6c490b8552e58a817a33999bc264d73ee726f18c2f8b5
|
278 |
+
writer:
|
279 |
+
type: FileConcatenate
|
280 |
+
config:
|
281 |
+
files: [ 'out/usernames_*.csv' ]
|
282 |
+
ignore_duplicate_lines: true
|
283 |
+
delete: true
|
284 |
+
- pass: &clean
|
285 |
+
input:
|
286 |
+
- path: "data/rentry/bluemoon/bluemoon-fanbased-roleplays-1x1.csv"
|
287 |
+
description: "Bluemoon 1-1 Fandom RP+ERP"
|
288 |
+
sha512: f31d6bd278bc4211736d6aace3917cd0c1d0143bec9bf9d07054f5f9b32060e17399b6ea0935774b2271ac45a88309a60ef8eec8c4ac5283d1b353a255529cc5
|
289 |
+
reader: *bluemoon
|
290 |
+
steps: [ *html_linebreaks, *html_strip, *links, *trim, *reduce_whitespace,
|
291 |
+
*ooc_strip, *reduce_separators, *reduce_punctuation, *spelling, *ooc_prune ]
|
292 |
+
output: &cleaned
|
293 |
+
- name: 'Bluemoon'
|
294 |
+
path: 'out/bluemoon.json'
|
295 |
+
description: 'Bluemoon 1-1 Fandom RP+ERP cleaned and formatted for Fastchat'
|
296 |
+
sha512: e42913ab405ef52369a61f896a4d41a0b23aefe170cd9c482def8aa27422bdc21d90f1b776089d73bf5376f53e235c431652061e2d8413efb3210d71345dbdfc
|
297 |
+
writer: *fastchat_pretty
|
298 |
+
steps: [ *strip_unicode, *reduce_whitespace, *strip_nonwords, *edge_cases, *trim, *empty,
|
299 |
+
*two_alternating_participants, *rename_participants ]
|
300 |
+
passes: [ *clean ]
|