Create and manage datasets
Create and populate a dataset
To create a new dataset and then upload a file to it, use textual.create_dataset
. To add files to the dataset, use dataset.upload_then_add_file
.
For example:
Textual creates the dataset, scans the uploaded file, and redacts the detected values.
Get the current status of dataset files
To get the current status of the files in the current dataset, use dataset.describe
:
The response includes:
The name and identifier of the dataset
The number of files in the dataset
The number of files that are waiting to be processed (scanned and redacted)
The number of files that had errors during processing
For example:
Get redacted content for a dataset
To get the redacted content in JSON format for a dataset, use textual
.get_dataset
:
For example:
The response looks something like:
Last updated