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 af09ca6 commit 35a50f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified __pycache__/utils.cpython-36.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def get_data_loaders(args, tokenizer):
logger.info("Build inputs and labels")
datasets = {"train": defaultdict(list), "valid": defaultdict(list)}
for dataset_name, dataset in personachat.items():
print(dataset[0]["utterances"][0])
num_candidates = len(dataset[0]["utterances"][0]["candidates"])
if args.num_candidates > 0 and dataset_name == 'train':
num_candidates = min(args.num_candidates, num_candidates)
Expand Down

0 comments on commit 35a50f5

Please sign in to comment.