Squish42 commited on
Commit
fe0714b
1 Parent(s): f21d236

Update descriptor for new pipeline

Browse files
Files changed (1) hide show
  1. dataset.yaml +44 -37
dataset.yaml CHANGED
@@ -1,23 +1,28 @@
1
  name: Bluemoon
2
  description: "Bluemoon 1-1 Fandom RP+ERP cleaned and formatted for Fastchat"
3
  build:
4
- messageBatch: 5000
5
  conversationBatch: 100
6
  cleanDirectory: [ 'out/*' ]
 
 
7
 
8
- _readers:
9
- - reader: &bluemoon
10
- type: csv
 
11
  config:
 
12
  fields:
13
  conversation: 'thread_href'
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:
@@ -261,40 +266,42 @@ _steps:
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
- ignoreDuplicates: 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
- ignoreDuplicateLines: 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 ]
 
1
  name: Bluemoon
2
  description: "Bluemoon 1-1 Fandom RP+ERP cleaned and formatted for Fastchat"
3
  build:
 
4
  conversationBatch: 100
5
  cleanDirectory: [ 'out/*' ]
6
+ concurrency:
7
+ local: 16
8
 
9
+ _input_steps:
10
+ - step: &bluemoon
11
+ type: CsvInput
12
+ sync: main
13
  config:
14
+ path: "data/rentry/bluemoon/bluemoon-fanbased-roleplays-1x1.csv"
15
  fields:
16
  conversation: 'thread_href'
17
  from: 'message_username'
18
  message: 'message'
19
 
20
+ _output_steps:
21
+ - step: &bluemoon_fastchat
22
+ type: FastChatOutput
23
+ sync: main
24
  config:
25
+ path: "out/bluemoon.json"
26
  indent: 2
27
 
28
  _debug_steps:
 
266
 
267
  _passes:
268
  - pass: &usernames
269
+ required:
270
  - path: "data/rentry/bluemoon/bluemoon-fanbased-roleplays-1x1.csv"
271
  sha512: f31d6bd278bc4211736d6aace3917cd0c1d0143bec9bf9d07054f5f9b32060e17399b6ea0935774b2271ac45a88309a60ef8eec8c4ac5283d1b353a255529cc5
272
+ steps:
273
+ - *bluemoon
274
+ - type: CsvOutput
275
+ description: "Extract usernames"
276
+ config:
277
+ path: 'out/usernames_%worker%.csv'
278
+ ignoreDuplicates: true
279
+ fields: [ 'from' ]
280
+ - type: FileConcatenate
281
+ sync: main
282
+ config:
283
+ path: 'out/usernames.csv'
284
+ files: [ 'out/usernames_*.csv' ]
285
+ ignoreDuplicateLines: true
286
+ delete: true
287
+ artifacts:
288
+ - file: 'out/usernames.csv'
289
+ sha512: 4caf853406443e00579ce4556340cc94c1e52933d4cd487c9865464ee72f4f60132a0c7ecc0aa971c85cf1aebdfc307cb066bfd20bfc50840563a4252412b6c5
290
+
291
  - pass: &clean
292
+ required:
293
  - path: "data/rentry/bluemoon/bluemoon-fanbased-roleplays-1x1.csv"
 
294
  sha512: f31d6bd278bc4211736d6aace3917cd0c1d0143bec9bf9d07054f5f9b32060e17399b6ea0935774b2271ac45a88309a60ef8eec8c4ac5283d1b353a255529cc5
295
+ steps: [ *bluemoon,
296
+ *html_linebreaks, *html_strip, *links, *trim, *reduce_whitespace,
297
+ *ooc_strip, *reduce_separators, *reduce_punctuation, *spelling, *ooc_prune,
298
+ *strip_unicode,
299
+ *reduce_whitespace, *strip_nonwords, *edge_cases, *trim, *empty,
300
+ *two_alternating_participants, *rename_participants,
301
+ *bluemoon_fastchat,
302
+ ]
303
+ artifacts:
304
+ - file: 'out/bluemoon.json'
305
  sha512: e42913ab405ef52369a61f896a4d41a0b23aefe170cd9c482def8aa27422bdc21d90f1b776089d73bf5376f53e235c431652061e2d8413efb3210d71345dbdfc
306
+
 
 
307
  passes: [ *clean ]