Skip to content

Commit ea400a4

Browse files
committed
Fix test cases. "to" is a PII context keyword in MLDetector.PII_PREV_KEYWORDS .
1 parent ad49166 commit ea400a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/semanticprivacyguard/CustomPatternTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void customPattern_employeeId_detected() {
115115
.build();
116116
SemanticPrivacyGuard spg = SemanticPrivacyGuard.create(config);
117117

118-
RedactionResult result = spg.redact("Assigned to EMP-042731 for review.");
118+
RedactionResult result = spg.redact("Task EMP-042731 is pending.");
119119

120120
assertTrue(result.getRedactedText().contains("[PII_1]"),
121121
"Employee ID should be tokenised to [PII_1]");

0 commit comments

Comments
 (0)