Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenxinAn-fdu authored Oct 18, 2022
1 parent 8771d63 commit e91eef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from transformers import AutoTokenizer

def get_data_path(PTM, dataset):
paths = {'train': f'tokenized_files/{dataset}/val.{PTM}.jsonl', 'val': f'tokenized_files/{dataset}/val.{PTM}.jsonl'}
paths = {'train': f'tokenized_files/{dataset}/train.{PTM}.jsonl', 'val': f'tokenized_files/{dataset}/val.{PTM}.jsonl'}
return paths


Expand Down Expand Up @@ -54,4 +54,4 @@ def get_data_bundle(args):
args.eos_id = tokenizer.eos_token_id
args.bos_id = tokenizer.bos_token_id
data_bundle = process_data(init_bundle, args)
return data_bundle
return data_bundle

0 comments on commit e91eef0

Please sign in to comment.