File size: 304 Bytes
c498527 |
1 2 3 4 5 6 7 8 9 10 |
from datasets import load_dataset
target_lang="sv" # change to your target lang
username = "hf-test" # change to your username
dataset = load_dataset(f"{username}/{target_lang}_corpora_parliament_processed", split="train")
with open("text.txt", "w") as file:
file.write(" ".join(dataset["text"]))
|