Skip to content

Commit

Permalink
movie_script persona maker
Browse files Browse the repository at this point in the history
  • Loading branch information
gorkemgoknar committed Dec 18, 2020
1 parent 4609ddd commit f21a449
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions data/make_persona_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,19 @@ def get_persona_from_file(file):

#personachat["2001"] = list( persona.values() )

persona =[]
for name,val in personachat.items():
for p in val:
persona.append(p)



personachat = {}
train_split_index = round(len(persona)*0.8)
personachat["train"] = persona[0:train_split_index]
personachat["val"] = persona[train_split_index:]




##SAVE TO JSON
Expand Down

0 comments on commit f21a449

Please sign in to comment.