Skip to content

Commit

Permalink
update processing
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Sep 14, 2023
1 parent b18d5fd commit a05cf83
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
del c["tstamp"]
del c["user_id"]

np.random.seed(42)
np.random.seed(44)
np.random.shuffle(convs)

convs = convs[:args.number]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export BASE=clean_conv_20230809_1.5M_pii
export SCALE=1

# filter words
python3 filter_bad_conv.py --in $BASE.json

# Clean up some fileds (e.g., timestamps)
python3 final_post_processing.py --in $BASE.s1.json

# upload to hf
python3 upload_hf_dataset.py --in $BASE.s1.s2.json

# Make another version with openai moderation tag
python3 merge_oai_tag.py --in $BASE.s1.s2.json

# Make visualizations
python3 compute_stats.py --in $BASE.s1.json --scale $SCALE

0 comments on commit a05cf83

Please sign in to comment.