Skip to main content

Set up recognizers for a tag

Set up recognizers so that classification scans suggest a tag for the right columns, for example the columns that hold email addresses. A recognizer is a rule that finds one kind of personal data in column names or sample rows, and scans use only the enabled recognizers of a tag.

Prerequisites​

Recognizer types​

The Recognizers tab of a tag lists each Recognizer with its Type, Target, Language, Supported entity, and Status. Recognizers that come with the portal show the type predefined, or pattern for some of them. You create recognizers of three types:

TypeType in the listFinds data byFields
PatternpatternA regular expression.Pattern name, Regex, Score (0 to 1).
Deny listDenyListRecognizerA list of exact values.Deny list (one value per line).
ContextcontextWords that describe the data.Context words (one word per line), Min score, Max score (0 to 1).

Every recognizer also has a Target:

  • Sample data checks the values in sample rows. This is the default.
  • Column name checks the names of the columns.

Add a recognizer​

  1. Open the tag from Tagging → Tags by selecting View next to it.
  2. Open the Recognizers tab.
  3. Select Add recognizer.
  4. Enter a Recognizer name that is unique within the tag.
  5. Under Type, select Pattern, Deny list, or Context.
  6. In Target, select Sample data or Column name.
  7. Optional: enter a Language, for example en.
  8. Enter the Supported entity, the kind of data the recognizer finds, for example EMAIL_ADDRESS.
  9. Fill in the fields of the type you selected. See Recognizer examples.
  10. Select Add Recognizer.

Add recognizer dialog with Type Pattern, Target Column name, Supported entity EMAIL_ADDRESS, and a regex

The recognizer appears in the Recognizers tab. Enabled is selected by default, so the next scan uses it. A tag can have up to 100 recognizers.

Edit, turn off, or remove a recognizer​

In the Recognizers tab, use the buttons in the Actions column of the recognizer:

  • Edit opens Edit recognizer. Change the fields, then select Save changes.
  • To turn a recognizer off without removing it, select Edit, clear Enabled, then select Save changes. Its Status shows Disabled, with Not Ready for scan under it. A recognizer that is not enabled does not take part in scans.
  • Remove opens the Remove dialog with the name of the recognizer. Select Remove recognizer to delete it from this tag, or Cancel to keep it. The other recognizers of the tag do not change.

Use Edit on recognizers of type pattern, DenyListRecognizer, or context. On a predefined recognizer, Edit recognizer opens with Pattern selected and Supported entity, Pattern name, Regex, and Score empty. Select Cancel to leave it unchanged.

While Auto Classification is on for the tag, you cannot remove or turn off its last enabled recognizer. The portal shows Auto Classification is on. Keep at least one enabled typed recognizer, or turn Auto Classification off in the same edit. Turn off Auto Classification first, with the switch on the Overview tab or in Edit Tag.

Copy a recognizer to other tags​

Copy a recognizer when several tags need the same rule. You cannot copy a predefined recognizer. If you try, the Copy recognizer dialog shows Source recognizer type is not supported by the Portal and copies nothing.

  1. In the Recognizers tab, select Copy next to the recognizer.
  2. In the Copy recognizer dialog, check the Source Tag and the Recognizer at the top.
  3. Select the tags to copy it to, up to 50 tags. Use Search target tags to find a tag. The dialog shows how many tags are selected, for example 2 selected.
  4. Select Copy.

Copy recognizer dialog with the source tag, the recognizer, and the list of target tags

The dialog then shows Copied destinations with a count and one line for each destination tag, marked Copied or Failed. It does not say why a tag failed. A copy fails, for example, when the destination tag already has a recognizer with the same name. To try the failed tags again, select Retry failed targets.

A copy has the same name and the same Enabled state as the original. Each copy is independent: when you later edit, turn off, or remove the original, the copies do not change.

Recognizer examples​

FieldEmail in sample dataEmail in column names
TypePatternPattern
TargetSample dataColumn name
Languageenen
Supported entityEMAIL_ADDRESSEMAIL_ADDRESS
Regex[\w.+-]+@[\w-]+\.[\w.-]+(?i)e[-_]?mail
Score0.80.8

Test a new recognizer on one schema first. Limit the scan job to that schema, run it, and check the suggestions before you scan everything.

Next steps​