Skip to content

Commit

Permalink
Update dataloader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BM-K authored May 10, 2023
1 parent 9876af6 commit 78d88de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions model/dataloader.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from fastNLP.io import JsonLoader
from transformers import AutoTokenizer
from preprocess.preprocess import TOKENIED_FILE_DIR

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


Expand Down

0 comments on commit 78d88de

Please sign in to comment.