Squish42 commited on
Commit
13ee459
·
1 Parent(s): c42b837

Removed additional OOC and edge cases

Browse files

- Additional end of line OOC `\([^\(]+\)$`
- Additional start of line OOC `^.*\)\)\n`
- Long mixed context intro `^As the title suggests.*Littleton.`
- Stripped 408 additional edge cases
- Pruned 4 additional messages

Files changed (3) hide show
  1. CHANGELOG.md +34 -0
  2. bluemoon.json +2 -2
  3. dataset.yaml +19 -4
CHANGELOG.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ___
2
+ - Additional end of line OOC `\([^\(]+\)$`
3
+ Previously matched for `\n\n\(.*?\)$`
4
+ - Additional start of line OOC `^.*\)\)\n`
5
+ 65 hits
6
+ - Long mixed context intro `^As the title suggests.*Littleton.`
7
+
8
+ Removed 408 additional edge cases:
9
+ - (can't spell the first part of it...)
10
+ - READ: Alright, I'm not the best at intros, so here you go. This story takes place in the land of Skyrim. Hopefully you've heard of the game of the year by now. We enter with Luke, a man of about 22, who makes his living doing \"odd jobs\". If someone has a fight to settle, they call him. I someone has a wolf terrorizing their herd of sheep, he's your man.
11
+ - Please be aware this roleplay will contain spoilers for Naruto and Naruto Shippuuden. If you have not watch all of Shippuuden, do NOT read this RP from start to finish. You have been warned. This RP will follow the anime's footsteps while changing bits of the players amusement. Again, proceed with caution.
12
+ - \*\*\* The Walking Dead RP \*\*\*\n
13
+ - Figgure ref
14
+ - This rp will be between the character Gin Ichimaru played by True Decade and an OC of mine.\n\n---
15
+ - \nClick to expand...\n
16
+ *402 occurrences*
17
+
18
+ Pruned 4 additional messages:
19
+ - THIS RP IS OFFICIALLY CLOSED NO FURTHER POSTS WILL BE POSTED AS I HAVE LOST INTEREST IN THE PLOT SORRY FOR THE LOSSES
20
+ - This is a Supernatural Fandom Romance RP between Dean Winchester and Castiel the angel. \n\nWARNING! CONTAINS HOMOSEXUAL CONTENT! IF YOU'RE HOMOPHOBIC, GO AWAY!
21
+ *Alters speaker roles for 1 conversation.*
22
+ - \n\nThis will be a one x one between myself and Iikaitlynii based off the AMC television series The Walking Dead​
23
+ *Alters speaker roles for 1 conversation.*
24
+ - 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?
25
+ *Changes last speaker role to "gpt" for 1 conversation.*
26
+
27
+ Known issues:
28
+ - 3 Messages containing only `))`
29
+ *Pending additional conversation flow transformers and last message matching*
30
+ - Edge cases around "randomname98766789 said:\nIzzy325 said:\n"
31
+ *This previously proceded something like 'Moved from PMs to thread'*
32
+ - More weird mixed context around usernames
33
+ *They just seem to be random comments, not clear yet. Needs a username extraction or pattern(s) that excludes character sheets. Maybe possible to strip with HTML DOM queries.*
34
+ ___
bluemoon.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5ec35616dce1078a337dac90926460cb5fa98d6c0e235409c490d5f5920c877c
3
- size 222814549
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f4aa453abcea090579c1f53688298e3b17ef6a5d048e1463bd67542e96e46da
3
+ size 222763333
dataset.yaml CHANGED
@@ -30,11 +30,12 @@ debug_steps:
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
@@ -87,12 +88,14 @@ steps:
87
  # This might be a bit overzealous.
88
  [ '\{.*\}', "" ], [ '\[.*?\]', "" ], [ '\(\(.*?(\)|\W)\)+', "" ],
89
  # Match for (...) but only at the beginning and end of messages.
90
- [ '^\(.*?\){1}', "" ], [ '\n\n\(.*?\){1}$', "" ],
91
  [ '(OOC|ooc|OoC|OCC|ooc|Ooc)(:| |-|;)\n?.*?(\n|$)', "" ],
92
  [ '(\n\nSee more|See more\n\n)', "" ], [ '^(RE|Re):.*?\n', "" ], [ '^NSFW:.*?\n$', "" ],
93
  # More author's notes and the like
94
  [ '^Note to everyone.*\)\)\n', "" ], [ '_*Author.*\n*_', "" ],
95
  [ 'x{3,}.*TEST?x*', "" ], [ '^- Let me.*-', "" ], [ '^.*\^\^;.*\){1}', "" ],
 
 
96
  ]
97
 
98
  - step: &links
@@ -149,6 +152,11 @@ steps:
149
  "Ok, sounds good! Anything else you want in?",
150
  "Not really maybe demon fight\n\nAnd that the demon has to shroud him self in human form and reveals himself to her",
151
  "Okay, I'll make it a bit later.", "Okay can't wait",
 
 
 
 
 
152
  ]
153
 
154
  - step: &strip_unicode
@@ -241,6 +249,13 @@ steps:
241
  [ ":: Oh, okay. Haha. Just wondering. ^_^ ::", "" ],
242
  [ "(man messed up the name already XD )", "" ],
243
  [ "Hmm I know, but its to much effort tonightmaybe tomorrow. XD And I couldnt be lucky enough to have a bread maker, but I do know how to make bread, just dont do it a lot. XD)", "" ],
 
 
 
 
 
 
 
244
  [ "now what?))", "Continue." ],
245
  ]
246
 
@@ -250,13 +265,13 @@ input:
250
  sha512: f31d6bd278bc4211736d6aace3917cd0c1d0143bec9bf9d07054f5f9b32060e17399b6ea0935774b2271ac45a88309a60ef8eec8c4ac5283d1b353a255529cc5
251
  reader: *bluemoon
252
  steps: [ *html_linebreaks, *html_strip, *links, *trim, *reduce_whitespace,
253
- *ooc_strip, *reduce_separators, *reduce_punctuation, *spelling, *ooc_prune ]
254
 
255
  output:
256
  - name: 'Bluemoon'
257
  path: 'out/bluemoon.json'
258
  description: 'Bluemoon 1-1 Fandom RP+ERP cleaned and formatted for Fastchat'
259
- sha512: 3e94d7b73af65854dc9db98ea973e0d15f3e1c455408481ae9c70b61f2bd912bbd3ad03957efd5c64547b00439995fef0ef79f52e58e0656018e538fe9532b5d
260
  writer: *fastchat_pretty
261
  steps: [ *strip_unicode, *reduce_whitespace, *strip_nonwords, *edge_cases, *trim, *empty,
262
  *two_alternating_participants, *rename_participants ]
 
30
  multiLine: true
31
  escape: true
32
  patterns: [
33
+ '\{.*\}', '\[.*?\]', '\(\(.*?(\)|\W)\)+', '^\(.*?\){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
+ '^As the title suggests.*Littleton.', '^.*\)\)\n'
39
  ]
40
 
41
  - step: &extract_links
 
88
  # This might be a bit overzealous.
89
  [ '\{.*\}', "" ], [ '\[.*?\]', "" ], [ '\(\(.*?(\)|\W)\)+', "" ],
90
  # Match for (...) but only at the beginning and end of messages.
91
+ [ '^\(.*?\){1}', "" ], [ '\([^\(]+\)$', "" ],
92
  [ '(OOC|ooc|OoC|OCC|ooc|Ooc)(:| |-|;)\n?.*?(\n|$)', "" ],
93
  [ '(\n\nSee more|See more\n\n)', "" ], [ '^(RE|Re):.*?\n', "" ], [ '^NSFW:.*?\n$', "" ],
94
  # More author's notes and the like
95
  [ '^Note to everyone.*\)\)\n', "" ], [ '_*Author.*\n*_', "" ],
96
  [ 'x{3,}.*TEST?x*', "" ], [ '^- Let me.*-', "" ], [ '^.*\^\^;.*\){1}', "" ],
97
+ [ '^As the title suggests.*Littleton.', "" ],
98
+ [ '^.*\)\)\n', "" ]
99
  ]
100
 
101
  - step: &links
 
152
  "Ok, sounds good! Anything else you want in?",
153
  "Not really maybe demon fight\n\nAnd that the demon has to shroud him self in human form and reveals himself to her",
154
  "Okay, I'll make it a bit later.", "Okay can't wait",
155
+ "THIS RP IS OFFICIALLY CLOSED NO FURTHER POSTS WILL BE POSTED AS I HAVE LOST INTEREST IN THE PLOT SORRY FOR THE LOSSES",
156
+ # TODO Do some whitespace reduction before post.
157
+ "This is a Supernatural Fandom Romance RP between Dean Winchester and Castiel the angel. \n\nWARNING! CONTAINS HOMOSEXUAL CONTENT! IF YOU'RE HOMOPHOBIC, GO AWAY!",
158
+ "\n\nThis will be a one x one between myself and Iikaitlynii based off the AMC television series The Walking Dead​",
159
+ "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?",
160
  ]
161
 
162
  - step: &strip_unicode
 
249
  [ ":: Oh, okay. Haha. Just wondering. ^_^ ::", "" ],
250
  [ "(man messed up the name already XD )", "" ],
251
  [ "Hmm I know, but its to much effort tonightmaybe tomorrow. XD And I couldnt be lucky enough to have a bread maker, but I do know how to make bread, just dont do it a lot. XD)", "" ],
252
+ [ "(can't spell the first part of it...)", "" ],
253
+ [ "READ: Alright, I'm not the best at intros, so here you go. This story takes place in the land of Skyrim. Hopefully you've heard of the game of the year by now. We enter with Luke, a man of about 22, who makes his living doing \"odd jobs\". If someone has a fight to settle, they call him. I someone has a wolf terrorizing their herd of sheep, he's your man.", "" ],
254
+ [ "Please be aware this roleplay will contain spoilers for Naruto and Naruto Shippuuden. If you have not watch all of Shippuuden, do NOT read this RP from start to finish. You have been warned. This RP will follow the anime's footsteps while changing bits of the players amusement. Again, proceed with caution.", "" ],
255
+ [ "\n*** The Walking Dead RP ***", "" ],
256
+ [ "Figgure ref", "" ],
257
+ [ "This rp will be between the character Gin Ichimaru played by True Decade and an OC of mine.\n\n---", "" ],
258
+ [ "\nClick to expand...", "" ],
259
  [ "now what?))", "Continue." ],
260
  ]
261
 
 
265
  sha512: f31d6bd278bc4211736d6aace3917cd0c1d0143bec9bf9d07054f5f9b32060e17399b6ea0935774b2271ac45a88309a60ef8eec8c4ac5283d1b353a255529cc5
266
  reader: *bluemoon
267
  steps: [ *html_linebreaks, *html_strip, *links, *trim, *reduce_whitespace,
268
+ *ooc_strip, *reduce_separators, *reduce_punctuation, *spelling, *ooc_prune ]
269
 
270
  output:
271
  - name: 'Bluemoon'
272
  path: 'out/bluemoon.json'
273
  description: 'Bluemoon 1-1 Fandom RP+ERP cleaned and formatted for Fastchat'
274
+ sha512: f5e367039479b6a2d6dc0561e551d35f2ccfbe579f2ebda7e33fc052dd5d2d1b06bb8b2ad72674b68fc904cb337cac0f7cc36069e77ea23bf626d89d13c795bc
275
  writer: *fastchat_pretty
276
  steps: [ *strip_unicode, *reduce_whitespace, *strip_nonwords, *edge_cases, *trim, *empty,
277
  *two_alternating_participants, *rename_participants ]