Update file dataset.cli.py
Browse files- dataset.cli.py +1 -1
dataset.cli.py
CHANGED
|
@@ -18,7 +18,7 @@ if __name__ == '__main__':
|
|
| 18 |
parser.add_argument('-p', '--remote_path')
|
| 19 |
parser.add_argument('-o', '--output_file', default='dataset.txt')
|
| 20 |
|
| 21 |
-
dataset = load_dataset(parser.
|
| 22 |
text = ''.join(s for s in dataset['train']['text']).encode('ascii', 'ignore').decode('ascii')
|
| 23 |
|
| 24 |
with open(parser.output_file, 'w') as f:
|
|
|
|
| 18 |
parser.add_argument('-p', '--remote_path')
|
| 19 |
parser.add_argument('-o', '--output_file', default='dataset.txt')
|
| 20 |
|
| 21 |
+
dataset = load_dataset(parser.remote_path)
|
| 22 |
text = ''.join(s for s in dataset['train']['text']).encode('ascii', 'ignore').decode('ascii')
|
| 23 |
|
| 24 |
with open(parser.output_file, 'w') as f:
|