Skip to content

Commit

Permalink
mouchard github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Natooz committed Nov 8, 2022
1 parent c1cbdb8 commit b05a760
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ def __init__(self, data_path: Union[List[Union[Path, PurePath, str]], Union[Path
max_seq_len: int, min_seq_len: int, padding_token: int):
self.samples = []
files_paths = data_path if isinstance(data_path, list) else list(Path(data_path).glob('**/*.json'))
import os
print(os.getcwd())
print(os.path.realpath(__file__))
print(data_path)
print(files_paths)

for file_path in tqdm(files_paths, desc='Preparing data'):
with open(file_path) as json_file:
Expand Down

0 comments on commit b05a760

Please sign in to comment.