Datasets:
Additional edge cases and consecutive non-word characters
Browse files- Stripped 385+ additional non-word characters
- Removed 44+ additional edge cases
- Pruned 14 additional OOC messages
- bluemoon.json +2 -2
- dataset.yaml +33 -13
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:8dd348e9c3f4060b1500aec7639a5285d27384f1c3e38ae92c3332d02240639c
|
3 |
+
size 222816498
|
dataset.yaml
CHANGED
@@ -117,6 +117,13 @@ steps:
|
|
117 |
recursive: true
|
118 |
replacements: [ [ "~~~~", "~~~" ], [ "----", "---" ], [ "<>", "*" ], [ "****", "***" ], [ ".....", "...." ] ]
|
119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
- step: &trim
|
121 |
type: Trim
|
122 |
description: "Trim leading and trailing whitespace."
|
@@ -129,7 +136,9 @@ steps:
|
|
129 |
caseSensitive: false
|
130 |
patterns: [
|
131 |
"BUMP", "-BUMP-", "~BUMP~", "Closed...", "Closed", "This thread is closed", "bump.", "*DELETED*",
|
132 |
-
"...", "Okay... so you didn't make a starting post??", "-----", "~~~~~"
|
|
|
|
|
133 |
|
134 |
- step: &strip_unicode
|
135 |
type: Encoding
|
@@ -138,16 +147,17 @@ steps:
|
|
138 |
invalid: ""
|
139 |
codec: us-ascii
|
140 |
|
141 |
-
- step: &
|
142 |
type: RegexReplace
|
143 |
-
description: "Consecutive non-word characters
|
144 |
config:
|
145 |
dotAll: true
|
146 |
multiLine: true
|
147 |
replacements: [
|
148 |
[ '^(-|,|\||\.|=|_|])\W*(s|\W)+\W(\b|\n)', "" ],
|
149 |
[ '^([w_=x]{5,}|~\+\+~)(\b|\n)', "" ],
|
150 |
-
[ '^(_|])+(\b|\n)', "" ], [ '^(\s|\.|,|\|)+', "" ]
|
|
|
151 |
]
|
152 |
|
153 |
- step: &spelling
|
@@ -190,7 +200,10 @@ steps:
|
|
190 |
[ "I'll start out a with an opening post.", "" ],
|
191 |
[ "\nOOC\n", "" ],
|
192 |
[ "NSFW\n\n", "" ], [ "Kinda short -- sorry!", "" ],
|
193 |
-
[ "\nthe end?^^", "" ], [ "\nthe end
|
|
|
|
|
|
|
194 |
[ "Just gonna toss this here so I don't have to hunt for it again.", "" ],
|
195 |
[ "If you want to hurry it up and get to the smut, just let me know XD I'm fine with whatever pace you like best.", "" ],
|
196 |
[ "???OCC. I intentionally jumbled it around a bit to make it more of a blur.???\n", "" ],
|
@@ -198,12 +211,19 @@ steps:
|
|
198 |
[ "nighty night^^ see you in the morning.)", "" ],
|
199 |
[ "oh yes, Abandoned is a good one^^ Lets do the Time Warm Again is really funny too!)", "" ],
|
200 |
[ "i dunno, lol do you want to?^^ we could always have it that Lucius and Narcissa HAVE to get married or Lucius risks the disinheratance from his family or something like an arranged marraige or something?)", "" ],
|
201 |
-
[ "i thought he was a vampire? oh well. ^^", "" ],
|
202 |
-
[ "
|
203 |
-
[ "
|
204 |
-
[ "(
|
|
|
|
|
|
|
|
|
205 |
[ "*Edit: Plus a tank top and a spandex/latex pants blend.", "" ],
|
206 |
-
[ "THE END? or maybe THAT'S ALL FOLKS! or even better AND THEY ALL LIVED HAPPILY EVER AFTER! (ok, you may kill me now^^)", "" ]
|
|
|
|
|
|
|
207 |
]
|
208 |
|
209 |
input:
|
@@ -212,13 +232,13 @@ input:
|
|
212 |
sha512: f31d6bd278bc4211736d6aace3917cd0c1d0143bec9bf9d07054f5f9b32060e17399b6ea0935774b2271ac45a88309a60ef8eec8c4ac5283d1b353a255529cc5
|
213 |
reader: *bluemoon
|
214 |
steps: [ *html_linebreaks, *html_strip, *links, *trim, *reduce_whitespace,
|
215 |
-
*ooc_strip, *ooc_prune, *reduce_separators, *spelling ]
|
216 |
|
217 |
output:
|
218 |
- name: 'Bluemoon'
|
219 |
path: 'out/bluemoon.json'
|
220 |
description: 'Bluemoon 1-1 Fandom RP+ERP cleaned and formatted for Fastchat'
|
221 |
-
sha512:
|
222 |
writer: *fastchat_pretty
|
223 |
-
steps: [ *strip_unicode, *reduce_whitespace, *
|
224 |
*two_alternating_participants, *rename_participants ]
|
|
|
117 |
recursive: true
|
118 |
replacements: [ [ "~~~~", "~~~" ], [ "----", "---" ], [ "<>", "*" ], [ "****", "***" ], [ ".....", "...." ] ]
|
119 |
|
120 |
+
- step: &reduce_punctuation
|
121 |
+
type: ExactReplace
|
122 |
+
description: "Reduce excessive punctuation"
|
123 |
+
config:
|
124 |
+
recursive: true
|
125 |
+
replacements: [ [ "!!!!", "!!!" ], [ "????", "???" ], [ "?!?!?!", "?!?!" ], [ "!?!?!?", "!?!?" ] ]
|
126 |
+
|
127 |
- step: &trim
|
128 |
type: Trim
|
129 |
description: "Trim leading and trailing whitespace."
|
|
|
136 |
caseSensitive: false
|
137 |
patterns: [
|
138 |
"BUMP", "-BUMP-", "~BUMP~", "Closed...", "Closed", "This thread is closed", "bump.", "*DELETED*",
|
139 |
+
"...", "Okay... so you didn't make a starting post??", "-----", "~~~~~",
|
140 |
+
"The End ^^\nshortest RP ever XDD", "the end^^", "i think so^^", "Fin^^", "Fin ^^", "-Placeholder-", "Molly was",
|
141 |
+
]
|
142 |
|
143 |
- step: &strip_unicode
|
144 |
type: Encoding
|
|
|
147 |
invalid: ""
|
148 |
codec: us-ascii
|
149 |
|
150 |
+
- step: &strip_nonwords
|
151 |
type: RegexReplace
|
152 |
+
description: "Consecutive non-word characters"
|
153 |
config:
|
154 |
dotAll: true
|
155 |
multiLine: true
|
156 |
replacements: [
|
157 |
[ '^(-|,|\||\.|=|_|])\W*(s|\W)+\W(\b|\n)', "" ],
|
158 |
[ '^([w_=x]{5,}|~\+\+~)(\b|\n)', "" ],
|
159 |
+
[ '^(_|])+(\b|\n)', "" ], [ '^(\s|\.|,|\|)+', "" ],
|
160 |
+
[ '([^a-zA-Z0-9 !?\.])\1{4,}', "" ],
|
161 |
]
|
162 |
|
163 |
- step: &spelling
|
|
|
200 |
[ "I'll start out a with an opening post.", "" ],
|
201 |
[ "\nOOC\n", "" ],
|
202 |
[ "NSFW\n\n", "" ], [ "Kinda short -- sorry!", "" ],
|
203 |
+
[ "\nthe end?^^", "" ], [ '\nThe end.^^', "" ], [ '\nthe end?', "" ], [ '\nThe end?', "" ], [ '\nThe end.', "" ],
|
204 |
+
# We can probably hit more end of message (ooc ...) with regex.
|
205 |
+
[ "\nThe End. (awwww lol)", "" ],
|
206 |
+
[ "\nThe End.", "" ], [ "The End?", "" ], [ "\n~The End~", "" ], [ "The End ^^\nshortest RP ever XDD", "" ],
|
207 |
[ "Just gonna toss this here so I don't have to hunt for it again.", "" ],
|
208 |
[ "If you want to hurry it up and get to the smut, just let me know XD I'm fine with whatever pace you like best.", "" ],
|
209 |
[ "???OCC. I intentionally jumbled it around a bit to make it more of a blur.???\n", "" ],
|
|
|
211 |
[ "nighty night^^ see you in the morning.)", "" ],
|
212 |
[ "oh yes, Abandoned is a good one^^ Lets do the Time Warm Again is really funny too!)", "" ],
|
213 |
[ "i dunno, lol do you want to?^^ we could always have it that Lucius and Narcissa HAVE to get married or Lucius risks the disinheratance from his family or something like an arranged marraige or something?)", "" ],
|
214 |
+
[ "i thought he was a vampire? oh well. ^^", "" ], [ "don't frget about Love and Lies!^^)", "" ],
|
215 |
+
[ "If I manage to catch your eye, please post. ^^", "" ], [ "(couldn't think of anything else. ^^", "" ],
|
216 |
+
[ "g'night! sleep well^^", "" ], [ "going to bed ^^ g'night.", "" ],
|
217 |
+
[ "(and yes, there is a difference^^)", "" ],
|
218 |
+
[ "going to bed. see you in the morning!^^)", "" ], [ "going to bed^^ see you in the morning.)", "" ],
|
219 |
+
[ "going to bed^^)", "" ],
|
220 |
+
[ "wanna see Harry's Animagus form?^^ it's so cute you get Three pics!^^\nRawrandLazyandHungry", "" ],
|
221 |
+
[ "\n^^^ her shorts are just a little longer lol", "" ],
|
222 |
[ "*Edit: Plus a tank top and a spandex/latex pants blend.", "" ],
|
223 |
+
[ "THE END? or maybe THAT'S ALL FOLKS! or even better AND THEY ALL LIVED HAPPILY EVER AFTER! (ok, you may kill me now^^)", "" ],
|
224 |
+
[ "OOC. you remember that not i sent explaining changing and half bloods? now is when it comes in handy XDD)", "" ],
|
225 |
+
[ "(HAD TO SAY IT)", "" ],
|
226 |
+
[ "now what?))", "Continue." ]
|
227 |
]
|
228 |
|
229 |
input:
|
|
|
232 |
sha512: f31d6bd278bc4211736d6aace3917cd0c1d0143bec9bf9d07054f5f9b32060e17399b6ea0935774b2271ac45a88309a60ef8eec8c4ac5283d1b353a255529cc5
|
233 |
reader: *bluemoon
|
234 |
steps: [ *html_linebreaks, *html_strip, *links, *trim, *reduce_whitespace,
|
235 |
+
*ooc_strip, *ooc_prune, *reduce_separators, *reduce_punctuation, *spelling ]
|
236 |
|
237 |
output:
|
238 |
- name: 'Bluemoon'
|
239 |
path: 'out/bluemoon.json'
|
240 |
description: 'Bluemoon 1-1 Fandom RP+ERP cleaned and formatted for Fastchat'
|
241 |
+
sha512: b7ee2b95034c85cab506d30865beba7e6e68969f4b8e45348ed227b3917824a75428301aae106acd3dc1e7e5ee85124c3ed872cfd823f3ec7a89fc0b01f0759b
|
242 |
writer: *fastchat_pretty
|
243 |
+
steps: [ *strip_unicode, *reduce_whitespace, *strip_nonwords, *edge_cases, *trim, *empty,
|
244 |
*two_alternating_participants, *rename_participants ]
|