Squish42 commited on
Commit
c42b837
·
1 Parent(s): 8ae426c

Update RegexExtract step, add 'out' to cleanDirectory paths.

Browse files
Files changed (1) hide show
  1. dataset.yaml +3 -3
dataset.yaml CHANGED
@@ -3,6 +3,7 @@ description: "Bluemoon 1-1 Fandom RP+ERP cleaned and formatted for Fastchat"
3
  build:
4
  messageBatch: 5000
5
  conversationBatch: 100
 
6
 
7
  readers:
8
  - reader: &bluemoon
@@ -24,17 +25,16 @@ debug_steps:
24
  type: RegexExtract
25
  description: "Extract OOC matches for examination"
26
  config:
27
- path: 'out/ooc.txt'
28
  dotAll: true
29
  multiLine: true
30
  escape: true
31
- overwrite: true
32
  patterns: [
33
  '\{.*\}', '\[.*?\]', '\(\(.*?(\)|\W)\)+', '^\(.*?\){1}', '\n\n\(.*?\){1}$',
34
  '(OOC|ooc|OoC|OCC|ooc|Ooc)(:| |-|;)\n?.*?(\n|$)',
35
  '(\n\nSee more|See more\n\n)', '^(RE|Re):.*?\n', '^NSFW:.*?\n$',
36
  '^Note to everyone.*\)\)\n', '_*Author.*\n*_',
37
- 'x{3,}.*TEST?x*', '^- Let me.*-\B\s+',
38
  ]
39
 
40
  - step: &extract_links
 
3
  build:
4
  messageBatch: 5000
5
  conversationBatch: 100
6
+ cleanDirectory: [ 'out' ]
7
 
8
  readers:
9
  - reader: &bluemoon
 
25
  type: RegexExtract
26
  description: "Extract OOC matches for examination"
27
  config:
28
+ path: 'out/ooc_%worker%.txt'
29
  dotAll: true
30
  multiLine: true
31
  escape: true
 
32
  patterns: [
33
  '\{.*\}', '\[.*?\]', '\(\(.*?(\)|\W)\)+', '^\(.*?\){1}', '\n\n\(.*?\){1}$',
34
  '(OOC|ooc|OoC|OCC|ooc|Ooc)(:| |-|;)\n?.*?(\n|$)',
35
  '(\n\nSee more|See more\n\n)', '^(RE|Re):.*?\n', '^NSFW:.*?\n$',
36
  '^Note to everyone.*\)\)\n', '_*Author.*\n*_',
37
+ 'x{3,}.*TEST?x*', '^- Let me.*-', '^.*\^\^;.*\){1}',
38
  ]
39
 
40
  - step: &extract_links