Skip to content

Commit 6611b43

Browse files
committed
updates
1 parent 0b5198b commit 6611b43

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pii/ner/pii_redaction/run_pii_slurm.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,13 @@ def makejob(JOB_NAME="pii-redaction", LANG=None, TEXT_COLUMN="content"):
193193
"cmake",
194194
]
195195
for i in range(args.start, args.end + 1):
196-
#language = languages[i]
197-
language="github-issues-filtered-structured"
196+
language = languages[i]
198197
print(f"Submitting jobs for experiment on language {language}")
199198
job_name = f"{language}-pii-redaction-idx_{i}"
200199
job = makejob(
201200
JOB_NAME=job_name,
202201
LANG=language,
203-
TEXT_COL=args.text_column,
202+
TEXT_COLUMN=args.text_column,
204203
)
205204
# submit the job
206205
print(f"Job for lang {language} ready and saved at jobs/{job_name}.sbatch")

pii/ner/pii_redaction/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def redact_pii_text(text, secrets, replacements, add_references=False):
120120
step = 0
121121
last_text = text
122122
for secret in secrets:
123+
# some post-processing
123124
if secret["tag"] in IGNORE or not is_secret(secret["value"]):
124125
continue
125126
if secret["tag"] == "IP_ADDRESS":

0 commit comments

Comments
 (0)