Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] INT-2168 Transform V1 and V2 config, blueprint card, modeltype fixes #430

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config_templates/gretel/transform/default.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Policy to search for and redact "sensitive PII" as defined by `ask-experian` as well as
# a custom defined regular expression for user IDs.
# a custom defined regular expression for user IDs.
# https://www.experian.com/blogs/ask-experian/what-is-personally-identifiable-information/

schema_version: "1.0"
Expand Down
29 changes: 29 additions & 0 deletions config_templates/gretel/transform/transform-v1-default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Policy to search for and redact "sensitive PII" as defined by `ask-experian` as well as
# a custom defined regular expression for user IDs.
# https://www.experian.com/blogs/ask-experian/what-is-personally-identifiable-information/

# NLP is turned on using "use_nlp: true" to provide better person name and
# location detection. Set to false if you're experiencing performance issues
# https://docs.gretel.ai/classify/classify-model-configuration#classifying-data-using-nlp

schema_version: "1.0"
name: "redact-pii-nlp-on"
models:
- transforms:
data_source: "_"
use_nlp: true
policies:
- name: remove_pii
rules:
- name: fake_or_redact_pii
conditions:
value_label:
- person_name
- credit_card_number
- phone_number
- email_address
- us_social_security_number
- location
transforms:
- type: fake
- type: hash
2 changes: 1 addition & 1 deletion model_types/modelTypesList.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
{
"modelType": "transform",
"modelCategory": "transform",
"defaultConfig": "config_templates/gretel/transform/default.yml",
"defaultConfig": "config_templates/gretel/transform/transform-v1-default.yml",
"description": "Detect and transform PII entities in datasets, including named entity recognition within free text fields.",
"label": "Transform",
"sampleDataset": {
Expand Down
2 changes: 1 addition & 1 deletion use_cases/gretel.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
"description": "Use Named Entity Recognition (NER) to detect and redact personally identifiable data in free text fields.",
"cardType": "Console",
"icon": "transform.png",
"modelType": "transform",
"modelType": "transform_v2",
"modelCategory": "transform",
"defaultConfig": "config_templates/gretel/transform/default.yml",
"sampleDataset": {
Expand Down
Loading