Skip to content

Added congition mapping as well as groupings to all PII bricks #372

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

Merged
merged 2 commits into from
Oct 18, 2023
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
4 changes: 4 additions & 0 deletions extractors/dates_and_times/date_extraction/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ def get_config():
available_for=["refinery", "common"],
part_of_group=[
"dates_and_times",
"personal_identifiers"
], # first entry should be parent directory
# bricks integrator information
cognition_init_mapping={
"@@LABEL@@": "Date"
},
integrator_inputs={
"name": "date_extraction",
"refineryDataType": RefineryDataType.TEXT.value,
Expand Down
4 changes: 4 additions & 0 deletions extractors/dates_and_times/time_extraction/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ def get_config():
available_for=["refinery", "common"],
part_of_group=[
"dates_and_times",
"personal_identifiers"
], # first entry should be parent directory
# bricks integrator information
cognition_init_mapping={
"@@LABEL@@": "Time"
},
integrator_inputs={
"name": "time_extraction",
"refineryDataType": RefineryDataType.TEXT.value,
Expand Down
2 changes: 1 addition & 1 deletion extractors/numbers/ip_extraction/code_snippet_refinery.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import re

ATTRIBUTE: str = "text" # only text attributes
LABEL: str = "IP-address"
LABEL: str = "IP Address"

def ip_extraction(record):
regex = re.compile(r"\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b")
Expand Down
6 changes: 5 additions & 1 deletion extractors/numbers/ip_extraction/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ def get_config():
available_for=["refinery", "common"],
part_of_group=[
"numbers",
"personal_identifiers"
], # first entry should be parent directory
# bricks integrator information
cognition_init_mapping={
"@@LABEL@@": "IP Address"
},
integrator_inputs={
"name": "ip_extraction",
"refineryDataType": RefineryDataType.TEXT.value,
Expand All @@ -31,7 +35,7 @@ def get_config():
},
"LABEL": {
"selectionType": SelectionType.CHOICE.value,
"defaultValue": "IP-address",
"defaultValue": "IP Address",
"optional": "false",
"addInfo": [
BricksVariableType.LABEL.value,
Expand Down
4 changes: 4 additions & 0 deletions extractors/numbers/phone_number_extraction/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ def get_config():
available_for=["refinery", "common"],
part_of_group=[
"numbers",
"personal_identifiers"
], # first entry should be parent directory
# bricks integrator information
cognition_init_mapping={
"@@LABEL@@": "Phone number"
},
integrator_inputs={
"name": "phone_number_extraction",
"refineryDataType": RefineryDataType.TEXT.value,
Expand Down
4 changes: 4 additions & 0 deletions extractors/paths/url_extraction/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ def get_config():
available_for=["refinery", "common"],
part_of_group=[
"paths",
"personal_identifiers"
], # first entry should be parent directory
# bricks integrator information
cognition_init_mapping={
"@@LABEL@@": "URL"
},
integrator_inputs={
"name": "url_extraction",
"refineryDataType": RefineryDataType.TEXT.value,
Expand Down
3 changes: 3 additions & 0 deletions extractors/personal_identifiers/address_extraction/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ def get_config():
"personal_identifiers",
], # first entry should be parent directory
# bricks integrator information
cognition_init_mapping={
"@@LABEL@@": "Address"
},
integrator_inputs={
"name": "address_extraction",
"refineryDataType": RefineryDataType.TEXT.value,
Expand Down
3 changes: 3 additions & 0 deletions extractors/personal_identifiers/email_extraction/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ def get_config():
"personal_identifiers",
], # first entry should be parent directory
# bricks integrator information
cognition_init_mapping={
"@@LABEL@@": "E-Mail"
},
integrator_inputs={
"name": "email_extraction",
"refineryDataType": RefineryDataType.TEXT.value,
Expand Down
5 changes: 4 additions & 1 deletion extractors/personal_identifiers/person_extraction/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ def get_config():
part_of_group=[
"personal_identifiers",
], # first entry should be parent directory
# bricks integrator information
# bricks integrator information
cognition_init_mapping={
"@@LABEL@@": "Person"
},
integrator_inputs={
"name": "person_extraction",
"refineryDataType": RefineryDataType.TEXT.value,
Expand Down
3 changes: 3 additions & 0 deletions extractors/personal_identifiers/zipcode_extraction/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ def get_config():
"personal_identifiers",
], # first entry should be parent directory
# bricks integrator information
cognition_init_mapping={
"@@LABEL@@": "Zip code"
},
integrator_inputs={
"name": "zipcode_extraction",
"refineryDataType": RefineryDataType.TEXT.value,
Expand Down
4 changes: 4 additions & 0 deletions extractors/words/org_extraction/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ def get_config():
available_for=["refinery", "common"],
part_of_group=[
"words",
"personal_identifiers"
], # first entry should be parent directory
# bricks integrator information
cognition_init_mapping={
"@@LABEL@@": "Organization"
},
integrator_inputs={
"name": "org_extraction",
"refineryDataType": RefineryDataType.TEXT.value,
Expand Down