If you have custom PII entities that are not being recognized by the pre-built model, such as strings of characters+numerics, you have a couple of options to include them:
- Use the Text Analytics API's entity recognition feature and provide your own set of regular expressions that match the custom PII entities you want to extract. This will allow you to customize the PII extraction process and add support for your custom entities.
- You can use a custom model that is trained on your own data with the custom entities. Azure Cognitive Services allows you to create and train custom models using the Text Analytics Custom Model API. With this approach, you'll need a labeled dataset with your custom PII entities, and use it to train the model, then you can use it to extract the custom entities.