Downloading a redacted dataset fileΒΆ
To download the redacted or synthesized version of the file, get the specific file from the dataset, then call the download function.
For example:
files = dataset.get_processed_files()
for file in files:
file_bytes = file.download()
with open('<file name>', 'wb') as f:
f.write(file_bytes)
To download a specific file in a dataset that you fetch by name:
file = txt_file = list(filter(lambda x: x.name=='<file to download>', dataset.files))[0]
file_bytes = file.download()
with open('<file name>', 'wb') as f:
f.write(file_bytes)