ExamplesΒΆ

Simple Example

The simplest yaml file is generated by the ads operator init --type pii and looks like the following:

kind: operator
type: pii
version: v1
spec:
    input_data:
        url: mydata.csv
    target_column: target
    output_directory:
        url: result/
    detectors:
        - name: default.phone
          action: mask

Complex Example

The yaml can also be maximally stated as follows:

kind: operator
type: pii
version: v1
spec:
    output_directory:
        url: oci://my-bucket@my-tenancy/results
        name: myProcessedData.csv
    report:
        report_filename: report.html
        show_rows: 10
        show_sensitive_content: true
    input_data:
        url: oci://my-bucket@my-tenancy/mydata.csv
    target_column: target
    detectors:
        - name: default.phone
          action: mask
        - name: default.social_security_number
          action: remove
        - name: spacy.en_core_web_trf.person
          action: anonymize