Datasets:
Strip many partial links inside anchors.
Browse files- bluemoon.json +2 -2
- dataset.yaml +6 -3
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:23823af929103d4d24e05b058bf6eda8fee6fe80a6cf6df5072998c192e271da
|
3 |
+
size 217187580
|
dataset.yaml
CHANGED
@@ -71,6 +71,8 @@ steps:
|
|
71 |
- step: &html_strip
|
72 |
type: HtmlStrip
|
73 |
description: "Strip HTML"
|
|
|
|
|
74 |
|
75 |
- step: &ooc_strip
|
76 |
type: RegexReplace
|
@@ -95,7 +97,7 @@ steps:
|
|
95 |
description: "Remove all links"
|
96 |
config:
|
97 |
replacements: [
|
98 |
-
[ '\[(img|video)
|
99 |
[ '[hH]ttp[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', "" ]
|
100 |
]
|
101 |
|
@@ -171,6 +173,7 @@ steps:
|
|
171 |
[ "hvlr\n/\n", "" ],
|
172 |
[ "' s ,\ns s.\ns s, ,\ns.\n", "" ],
|
173 |
[ "I'll post first\n_ _ _ _ _ _ _ _ _ _ _\n", "" ], [ "Moved from PMs to threads", "" ],
|
|
|
174 |
[ "NSFW\n\n", "" ],
|
175 |
]
|
176 |
|
@@ -179,14 +182,14 @@ input:
|
|
179 |
description: "Bluemoon 1-1 Fandom RP+ERP"
|
180 |
sha512: f31d6bd278bc4211736d6aace3917cd0c1d0143bec9bf9d07054f5f9b32060e17399b6ea0935774b2271ac45a88309a60ef8eec8c4ac5283d1b353a255529cc5
|
181 |
reader: *bluemoon
|
182 |
-
steps: [ *html_linebreaks, *
|
183 |
*ooc_strip, *ooc_prune ]
|
184 |
|
185 |
output:
|
186 |
- name: 'Bluemoon'
|
187 |
path: 'out/bluemoon.json'
|
188 |
description: 'Bluemoon 1-1 Fandom RP+ERP cleaned and formatted for Fastchat'
|
189 |
-
sha512:
|
190 |
writer: fastchat
|
191 |
steps: [ *strip_unicode, *reduce_whitespace, *trim_nonwords, *edge_cases, *trim, *empty,
|
192 |
*two_alternating_participants, *rename_participants ]
|
|
|
71 |
- step: &html_strip
|
72 |
type: HtmlStrip
|
73 |
description: "Strip HTML"
|
74 |
+
config:
|
75 |
+
stripAnchorPatterns: ['/', '.jpg', '.JPG', '.png', '.PNG', '.gif', '.GIF']
|
76 |
|
77 |
- step: &ooc_strip
|
78 |
type: RegexReplace
|
|
|
97 |
description: "Remove all links"
|
98 |
config:
|
99 |
replacements: [
|
100 |
+
[ '\[(img|video).*\].*\[(\/img|video)\]', "" ],
|
101 |
[ '[hH]ttp[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', "" ]
|
102 |
]
|
103 |
|
|
|
173 |
[ "hvlr\n/\n", "" ],
|
174 |
[ "' s ,\ns s.\ns s, ,\ns.\n", "" ],
|
175 |
[ "I'll post first\n_ _ _ _ _ _ _ _ _ _ _\n", "" ], [ "Moved from PMs to threads", "" ],
|
176 |
+
[ "I'll start out a with an opening post.", ""],
|
177 |
[ "NSFW\n\n", "" ],
|
178 |
]
|
179 |
|
|
|
182 |
description: "Bluemoon 1-1 Fandom RP+ERP"
|
183 |
sha512: f31d6bd278bc4211736d6aace3917cd0c1d0143bec9bf9d07054f5f9b32060e17399b6ea0935774b2271ac45a88309a60ef8eec8c4ac5283d1b353a255529cc5
|
184 |
reader: *bluemoon
|
185 |
+
steps: [ *html_linebreaks, *html_strip, *links, *trim, *reduce_whitespace,
|
186 |
*ooc_strip, *ooc_prune ]
|
187 |
|
188 |
output:
|
189 |
- name: 'Bluemoon'
|
190 |
path: 'out/bluemoon.json'
|
191 |
description: 'Bluemoon 1-1 Fandom RP+ERP cleaned and formatted for Fastchat'
|
192 |
+
sha512: 0a371870d9448b12322b0865c49055396eb6f9e3c5e6b84a88af0343546597f73608db00be97b5f5d26c3643080fc292247f915de4408e1d0936d6faeb06e560
|
193 |
writer: fastchat
|
194 |
steps: [ *strip_unicode, *reduce_whitespace, *trim_nonwords, *edge_cases, *trim, *empty,
|
195 |
*two_alternating_participants, *rename_participants ]
|