Squish42 commited on
Commit
1d5e5e8
1 Parent(s): e035f7f

Add step for spelling mistakes.

Browse files

"bow staff" -> "bo staff"

Files changed (2) hide show
  1. bluemoon.json +2 -2
  2. dataset.yaml +9 -2
bluemoon.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ddf817ba1dd15aa3e4617cf3f0c1f91fb0fcb56053445c4b0066812a550267ca
3
- size 217180735
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c153ca4eca69caa564f9df007f2607784e36cf332a59e23b7790f2bd998455b1
3
+ size 217180730
dataset.yaml CHANGED
@@ -150,6 +150,13 @@ steps:
150
  [ '^(_|])+(\b|\n)', "" ], [ '^(\s|\.|,|\|)+', "" ]
151
  ]
152
 
 
 
 
 
 
 
 
153
  - step: &empty
154
  type: FullMatch
155
  description: "Drop empty messages."
@@ -190,13 +197,13 @@ input:
190
  sha512: f31d6bd278bc4211736d6aace3917cd0c1d0143bec9bf9d07054f5f9b32060e17399b6ea0935774b2271ac45a88309a60ef8eec8c4ac5283d1b353a255529cc5
191
  reader: *bluemoon
192
  steps: [ *html_linebreaks, *html_strip, *links, *trim, *reduce_whitespace,
193
- *ooc_strip, *ooc_prune, *reduce_separators ]
194
 
195
  output:
196
  - name: 'Bluemoon'
197
  path: 'out/bluemoon.json'
198
  description: 'Bluemoon 1-1 Fandom RP+ERP cleaned and formatted for Fastchat'
199
- sha512: 88e86779a94146d56f8b6c6f3abc3ffc3624066fb5fab389a373a395cfddccfcf13bac4a9ff986c4741c92b29dfb4b493c36c4f8542d2a6499c77c9d09ad41c9
200
  writer: fastchat
201
  steps: [ *strip_unicode, *reduce_whitespace, *trim_nonwords, *edge_cases, *trim, *empty,
202
  *two_alternating_participants, *rename_participants ]
 
150
  [ '^(_|])+(\b|\n)', "" ], [ '^(\s|\.|,|\|)+', "" ]
151
  ]
152
 
153
+ - step: &spelling
154
+ type: ExactReplace
155
+ description: "Spelling mistakes and typos."
156
+ config:
157
+ caseSensitive: false
158
+ replacements: [ [ 'bow staff','bo staff' ] ]
159
+
160
  - step: &empty
161
  type: FullMatch
162
  description: "Drop empty messages."
 
197
  sha512: f31d6bd278bc4211736d6aace3917cd0c1d0143bec9bf9d07054f5f9b32060e17399b6ea0935774b2271ac45a88309a60ef8eec8c4ac5283d1b353a255529cc5
198
  reader: *bluemoon
199
  steps: [ *html_linebreaks, *html_strip, *links, *trim, *reduce_whitespace,
200
+ *ooc_strip, *ooc_prune, *reduce_separators, *spelling ]
201
 
202
  output:
203
  - name: 'Bluemoon'
204
  path: 'out/bluemoon.json'
205
  description: 'Bluemoon 1-1 Fandom RP+ERP cleaned and formatted for Fastchat'
206
+ sha512: 44ce253dd5fb80c324c9e0dd6dddd6e74ec92788365dd512e665363183b36ac278f9f2952c4bacad1277cd9268c56bbe993ffb7ba654d048fd13dc8cb9ed229f
207
  writer: fastchat
208
  steps: [ *strip_unicode, *reduce_whitespace, *trim_nonwords, *edge_cases, *trim, *empty,
209
  *two_alternating_participants, *rename_participants ]