(filepaths, output_dir)
| 61 | |
| 62 | |
| 63 | def get_filepaths(filepaths, output_dir): |
| 64 | paths = [] |
| 65 | train_path = 'train.json' |
| 66 | dev_path = 'dev.json' |
| 67 | test_path = 'test.json' |
| 68 | paths.append(os.path.join(output_dir, train_path)) |
| 69 | paths.append(os.path.join(output_dir, dev_path)) |
| 70 | paths.append(os.path.join(output_dir, test_path)) |
| 71 | return paths |
| 72 | |
| 73 | def write_files(lines, mappings, filepaths): |
| 74 | for l, m, path in zip(lines, mappings, filepaths): |