Skip to content

Commit

Permalink
fix long line
Browse files Browse the repository at this point in the history
  • Loading branch information
gorkemgoknar committed Dec 19, 2020
1 parent 144145e commit c3d43c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions data/make_persona_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ def get_chat_dialog(dialog):
if len(name)>22:
continue

if len(splitted[1:])> 544:
#do not get long lines.
#have token limit of 512
continue


talk = " ".join(splitted[1:]).strip()

talk = preprocess_line(talk)
Expand Down
2 changes: 1 addition & 1 deletion data/moviepersonafile.json

Large diffs are not rendered by default.

0 comments on commit c3d43c3

Please sign in to comment.