File size: 279 Bytes
084ac91 |
1 2 3 4 5 6 7 8 9 10 11 12 |
from datasets import load_dataset
from tqdm import tqdm
dataset = load_dataset('anuragshas/lv_opus100_processed', split='train')
with open('opus100.txt', 'w') as file:
for entry in tqdm(dataset):
file.write(f'{entry["text"]}\n')
file.close()
print('Done')
|