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

Add stats_output step

Browse files
Files changed (2) hide show
  1. .gitattributes +1 -1
  2. dataset.yaml +12 -1
.gitattributes CHANGED
@@ -1,6 +1,5 @@
1
  # Line endings
2
  *.csv eol=crlf
3
-
4
  *.7z filter=lfs diff=lfs merge=lfs -text
5
  *.arrow filter=lfs diff=lfs merge=lfs -text
6
  *.bin filter=lfs diff=lfs merge=lfs -text
@@ -56,3 +55,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
56
  *.jpeg filter=lfs diff=lfs merge=lfs -text
57
  *.webp filter=lfs diff=lfs merge=lfs -text
58
  *.json filter=lfs diff=lfs merge=lfs -text
 
 
1
  # Line endings
2
  *.csv eol=crlf
 
3
  *.7z filter=lfs diff=lfs merge=lfs -text
4
  *.arrow filter=lfs diff=lfs merge=lfs -text
5
  *.bin filter=lfs diff=lfs merge=lfs -text
 
55
  *.jpeg filter=lfs diff=lfs merge=lfs -text
56
  *.webp filter=lfs diff=lfs merge=lfs -text
57
  *.json filter=lfs diff=lfs merge=lfs -text
58
+ *.gz filter=lfs diff=lfs merge=lfs -text
dataset.yaml CHANGED
@@ -232,6 +232,17 @@ _steps:
232
  pack: [ 'pack/edge_cases.csv' ]
233
  config:
234
  packedReplacements: [ 'pack/edge_cases.csv' ]
 
 
 
 
 
 
 
 
 
 
 
235
  _passes:
236
  # Collect all usernames from source data
237
  - pass: &usernames
@@ -299,7 +310,7 @@ _passes:
299
  *strip_unicode,
300
  *reduce_whitespace, *strip_nonwords, *edge_cases, *trim, *empty,
301
  *two_alternating_participants, *rename_participants,
302
- *bluemoon_fastchat,
303
  ]
304
  artifacts:
305
  - file: 'out/bluemoon.json'
 
232
  pack: [ 'pack/edge_cases.csv' ]
233
  config:
234
  packedReplacements: [ 'pack/edge_cases.csv' ]
235
+
236
+ - step: &stats_output
237
+ type: StatsOutput
238
+ description: "Output statistics"
239
+ sync: main
240
+ config:
241
+ path: 'stats/stats.json'
242
+ vocabPath: 'stats/vocabulary.json.gz'
243
+ gZipVocabulary: true
244
+ conversationsPath: 'stats/conversations.json.gz'
245
+ gZipConversations: true
246
  _passes:
247
  # Collect all usernames from source data
248
  - pass: &usernames
 
310
  *strip_unicode,
311
  *reduce_whitespace, *strip_nonwords, *edge_cases, *trim, *empty,
312
  *two_alternating_participants, *rename_participants,
313
+ *bluemoon_fastchat, *stats_output
314
  ]
315
  artifacts:
316
  - file: 'out/bluemoon.json'