Squish42 commited on
Commit
c042573
1 Parent(s): 787ea30

Fix dangling OOC closing tags around "[[ ]]" and "(( ))" (33 hits)

Browse files
Files changed (3) hide show
  1. .gitignore +2 -0
  2. CHANGELOG.md +2 -0
  3. dataset.yaml +9 -4
.gitignore CHANGED
@@ -1,4 +1,6 @@
 
1
  out
2
  data
3
  # Generated data
4
  pack/gen
 
 
1
+ .idea
2
  out
3
  data
4
  # Generated data
5
  pack/gen
6
+ *.pyc
CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
 
 
1
  **Restored over 87,191 additional messages.**\
2
  *Improved pruning strategy for extraneous participants and consecutive messages*\
3
 
 
1
+ - Fix dangling OOC closing tags around `[[ ]]` and `(( ))` (30+ hits)
2
+ ---
3
  **Restored over 87,191 additional messages.**\
4
  *Improved pruning strategy for extraneous participants and consecutive messages*\
5
 
dataset.yaml CHANGED
@@ -29,6 +29,7 @@ _output_steps:
29
  config:
30
  path: "out/bluemoon.json"
31
  indent: 2
 
32
 
33
  _debug_steps:
34
  - step: &extract_ooc
@@ -97,9 +98,9 @@ _steps:
97
  multiLine: true
98
  replacements: [
99
  # This might be a bit overzealous.
100
- [ '\{.*\}', "" ], [ '\[.*?\]', "" ], [ '\(\(.*?(\)|\W)\)+', "" ],
101
  # Match for (...) but only at the beginning and end of messages.
102
- [ '^\(.*?\){1}', "" ], [ '\([^\(]+\)$', "" ],
103
  [ '(OOC|ooc|OoC|OCC|ooc|Ooc)(:| |-|;)\n?.*?(\n|$)', "" ],
104
  [ '(\n\nSee more|See more\n\n)', "" ], [ '^(RE|Re):.*?\n', "" ], [ '^NSFW:.*?\n$', "" ],
105
  # More author's notes and the like
@@ -154,6 +155,8 @@ _steps:
154
  patterns: [
155
  "BUMP", "-BUMP-", "~BUMP~", "Closed...", "Closed", "Closed\n\n...", "This thread is closed", "bump.", "*DELETED*",
156
  "...", "Okay... so you didn't make a starting post??", "---", "~~~",
 
 
157
  "The End ^^\nshortest RP ever XDD", "the end^^", "i think so^^", "Fin^^", "Fin ^^", "-Placeholder-", "Molly was",
158
  "Hahahaha, Yeah, I was a little confused",
159
  "Lol do you want to delted this thread possibly and start a new one I'm sorry",
@@ -168,7 +171,8 @@ _steps:
168
  "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!",
169
  "\n\nThis will be a one x one between myself and Iikaitlynii based off the AMC television series The Walking Dead​",
170
  "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?",
171
- "title or something idk", "Geralt = \n\nDandelion = "
 
172
  ]
173
  - step: &strip_usernames
174
  type: ExactReplace
@@ -307,6 +311,7 @@ _passes:
307
  steps: [ *bluemoon,
308
  *html_linebreaks, *html_strip, *links, *trim, *reduce_whitespace,
309
  *ooc_strip, *reduce_separators, *reduce_punctuation, *spelling, *ooc_prune,
 
310
  *strip_unicode,
311
  *reduce_whitespace, *strip_nonwords, *edge_cases, *trim, *empty,
312
  *two_alternating_participants, *rename_participants,
@@ -314,6 +319,6 @@ _passes:
314
  ]
315
  artifacts:
316
  - file: 'out/bluemoon.json'
317
- sha512: 1846fd5a901e4cbe1979d96b0cdf272275548891300ba78f523ffaecc407cc08ea556fa142ac478fb4e3a96b7ad811b4aff9c85191326b57eef1dcde2f473fb2
318
 
319
  passes: [ *clean ]
 
29
  config:
30
  path: "out/bluemoon.json"
31
  indent: 2
32
+ includeMessageId: true
33
 
34
  _debug_steps:
35
  - step: &extract_ooc
 
98
  multiLine: true
99
  replacements: [
100
  # This might be a bit overzealous.
101
+ [ '\{.*\}', "" ], [ '\[.*?\]+', "" ], [ '\(\(.*?(\)|\W)\)+', "" ],
102
  # Match for (...) but only at the beginning and end of messages.
103
+ [ '^\(.*?\)+', "" ], [ '\([^\(]+\)+$', "" ],
104
  [ '(OOC|ooc|OoC|OCC|ooc|Ooc)(:| |-|;)\n?.*?(\n|$)', "" ],
105
  [ '(\n\nSee more|See more\n\n)', "" ], [ '^(RE|Re):.*?\n', "" ], [ '^NSFW:.*?\n$', "" ],
106
  # More author's notes and the like
 
155
  patterns: [
156
  "BUMP", "-BUMP-", "~BUMP~", "Closed...", "Closed", "Closed\n\n...", "This thread is closed", "bump.", "*DELETED*",
157
  "...", "Okay... so you didn't make a starting post??", "---", "~~~",
158
+ # Remnants of malformed OOC
159
+ ")", "(",
160
  "The End ^^\nshortest RP ever XDD", "the end^^", "i think so^^", "Fin^^", "Fin ^^", "-Placeholder-", "Molly was",
161
  "Hahahaha, Yeah, I was a little confused",
162
  "Lol do you want to delted this thread possibly and start a new one I'm sorry",
 
171
  "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!",
172
  "\n\nThis will be a one x one between myself and Iikaitlynii based off the AMC television series The Walking Dead​",
173
  "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?",
174
+ "title or something idk", "Geralt = \n\nDandelion = ",
175
+ "(Are we still rping this?"
176
  ]
177
  - step: &strip_usernames
178
  type: ExactReplace
 
311
  steps: [ *bluemoon,
312
  *html_linebreaks, *html_strip, *links, *trim, *reduce_whitespace,
313
  *ooc_strip, *reduce_separators, *reduce_punctuation, *spelling, *ooc_prune,
314
+ *empty,
315
  *strip_unicode,
316
  *reduce_whitespace, *strip_nonwords, *edge_cases, *trim, *empty,
317
  *two_alternating_participants, *rename_participants,
 
319
  ]
320
  artifacts:
321
  - file: 'out/bluemoon.json'
322
+ #sha512: 1846fd5a901e4cbe1979d96b0cdf272275548891300ba78f523ffaecc407cc08ea556fa142ac478fb4e3a96b7ad811b4aff9c85191326b57eef1dcde2f473fb2
323
 
324
  passes: [ *clean ]