Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Sep 14, 2023
1 parent a05cf83 commit 26cc325
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@
convs = json.load(open(args.in_file))
print(f"#conv: {len(convs)}")

new_convs = []
for c in convs:
del c["tstamp"]
del c["user_id"]
if len(c["conversation"]) == 0:
continue

np.random.seed(44)
new_convs.append(c)
convs = new_convs

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

convs = convs[:args.number]
Expand Down

0 comments on commit 26cc325

Please sign in to comment.