RecognizePiiEntitiesAction Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. RecognizePiiEntitiesAction
- com.
public final class RecognizePiiEntitiesAction
Configurations that allow callers to specify details about how to execute a Personally Identifiable Information(PII) entities recognition action in a set of documents.
Constructor Summary
| Constructor | Description |
|---|---|
| RecognizePiiEntitiesAction() |
Constructs a |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
getActionName()
Get the name of action. |
|
Iterable<Pii |
getCategoriesFilter()
Gets the value of categories |
|
Pii |
getDomainFilter()
Gets the value of domain |
| String |
getModelVersion()
Gets the version of the text analytics model used by this operation. |
| boolean |
isServiceLogsDisabled()
Gets the value of service logs disable status. |
|
Recognize |
setActionName(String actionName)
Set the custom name for the action. |
|
Recognize |
setCategoriesFilter(PiiEntityCategory[] categoriesFilter)
Sets the value of categories |
|
Recognize |
setDomainFilter(PiiEntityDomain domainFilter)
Sets the value of domain |
|
Recognize |
setModelVersion(String modelVersion)
Sets the model version. |
|
Recognize |
setServiceLogsDisabled(boolean disableServiceLogs)
Sets the value of service logs disable status. |
Methods inherited from java.lang.Object
Constructor Details
RecognizePiiEntitiesAction
public RecognizePiiEntitiesAction()
Constructs a RecognizePiiEntitiesAction model.
Method Details
getActionName
public String getActionName()
Get the name of action.
Returns:
getCategoriesFilter
public Iterable<PiiEntityCategory> getCategoriesFilter()
Gets the value of categoriesFilter. It filters the response entities to ones only included in the specified categories.
Returns:
getDomainFilter
public PiiEntityDomain getDomainFilter()
Gets the value of domainFilter. It filters the response entities to ones only included in the specified domain. I.e., if set to 'PHI', will only return entities in the Protected Healthcare Information domain. See PII for more information.
Returns:
getModelVersion
public String getModelVersion()
Gets the version of the text analytics model used by this operation.
Returns:
isServiceLogsDisabled
public boolean isServiceLogsDisabled()
Gets the value of service logs disable status. The default value of this property is 'true'. This means, Text Analytics service won't log your input text. Setting this property to 'false', enables logging your input text for 48 hours, solely to allow for troubleshooting issues.
Returns:
setActionName
public RecognizePiiEntitiesAction setActionName(String actionName)
Set the custom name for the action.
Parameters:
Returns:
RecognizePiiEntitiesAction object itself.setCategoriesFilter
public RecognizePiiEntitiesAction setCategoriesFilter(PiiEntityCategory[] categoriesFilter)
Sets the value of categoriesFilter. It filters the response entities to ones only included in the specified categories.
Parameters:
Returns:
RecognizePiiEntitiesAction object itself.setDomainFilter
public RecognizePiiEntitiesAction setDomainFilter(PiiEntityDomain domainFilter)
Sets the value of domainFilter. It filters the response entities to ones only included in the specified domain. I.e., if set to 'PHI', will only return entities in the Protected Healthcare Information domain. See PII for more information.
Parameters:
Returns:
RecognizePiiEntitiesAction object itself.setModelVersion
public RecognizePiiEntitiesAction setModelVersion(String modelVersion)
Sets the model version. This value indicates which model will be used for scoring, e.g. "latest", "2019-10-01". If a model-version is not specified, the API will default to the latest, non-preview version.
Parameters:
Returns:
RecognizePiiEntitiesAction object itself.setServiceLogsDisabled
public RecognizePiiEntitiesAction setServiceLogsDisabled(boolean disableServiceLogs)
Sets the value of service logs disable status.
Parameters:
Returns:
RecognizePiiEntitiesAction object itself.