@@ -762,7 +762,6 @@ void test_recognizers_CRUD(TestInfo test) throws IOException {
762762 PatternRecognizer patternConfig =
763763 new PatternRecognizer ()
764764 .withType ("pattern" )
765- .withSupportedEntity (PIIEntity .EMAIL_ADDRESS )
766765 .withSupportedLanguage (ClassificationLanguage .EN )
767766 .withPatterns (
768767 List .of (
@@ -813,7 +812,6 @@ void test_recognizers_CRUD(TestInfo test) throws IOException {
813812 PatternRecognizer ssnConfig =
814813 new PatternRecognizer ()
815814 .withType ("pattern" )
816- .withSupportedEntity (PIIEntity .US_SSN )
817815 .withSupportedLanguage (ClassificationLanguage .EN )
818816 .withPatterns (
819817 List .of (
@@ -918,7 +916,6 @@ void test_createTagWithRecognizers(TestInfo test) throws IOException {
918916 ExactTermsRecognizer exactTermsConfig =
919917 new ExactTermsRecognizer ()
920918 .withType ("exact_terms" )
921- .withSupportedEntity (PIIEntity .CREDIT_CARD )
922919 .withSupportedLanguage (ClassificationLanguage .EN )
923920 .withExactTerms (List .of ("password" , "secret" , "token" , "key" ))
924921 .withRegexFlags (
@@ -936,7 +933,6 @@ void test_createTagWithRecognizers(TestInfo test) throws IOException {
936933 ContextRecognizer contextConfig =
937934 new ContextRecognizer ()
938935 .withType ("context" )
939- .withSupportedEntity (PIIEntity .PERSON )
940936 .withSupportedLanguage (ClassificationLanguage .EN )
941937 .withContextWords (List .of ("name" , "person" , "user" , "customer" ))
942938 .withMinScore (0.4 )
@@ -1030,7 +1026,6 @@ void test_recognizerValidation(TestInfo test) throws IOException {
10301026 PatternRecognizer config =
10311027 new PatternRecognizer ()
10321028 .withType ("pattern" )
1033- .withSupportedEntity (PIIEntity .ES_NIE )
10341029 .withSupportedLanguage (ClassificationLanguage .EN )
10351030 .withPatterns (List .of ());
10361031
0 commit comments