PIIResult
Models & Types · AiDotNet.Safety.Text
Detailed result from PII detection with detected entities and redacted text.
For Beginners
PIIResult provides AI safety functionality. Default values follow the original paper settings.
Constructors
| Constructor | Summary |
|---|---|
PIIResult() |
Properties
| Property | Summary |
|---|---|
IReadOnlyDictionary<string, int> EntityCounts { get; set; } |
Count of PII entities by type. |
IReadOnlyList<PIIEntity> Entities { get; set; } |
List of detected PII entities with their locations, types, and confidence. |
bool ContainsPII { get; set; } |
Whether any PII was detected. |
string RedactedText { get; set; } |
The text with PII redacted according to the configured strategy. |