PIIEntity

Models & Types · AiDotNet.Safety.Text

Represents a detected PII entity in text.

Constructors

Constructor Summary
PIIEntity()

Properties

Property Summary
double Confidence { get; set; } Detection confidence between 0.0 and 1.0.
int EndIndex { get; set; } End character offset in the original text (exclusive, consistent with SpanEnd).
int StartIndex { get; set; } Start character offset in the original text.
string Type { get; set; } The type of PII detected (e.g., “Email”, “SSN”, “PhoneNumber”).
string Value { get; set; } The matched text value.