PIIDetectorBase<T>

Base Classes · AiDotNet.Safety.Text

Abstract base class for PII detection modules.

Inheritance: ModelBase<T, Vector<T>, Vector<T>> → SafetyModuleBase<T> → TextSafetyModuleBase<T> → PIIDetectorBase<T>

Implements: IPIIDetector<T>

For Beginners

This base class provides common code for all PII detectors. Each detector type extends this class and adds its own way of finding personal information in text.

How It Works

Provides shared infrastructure for PII detectors including entity deduplication and common regex timeout configuration. Concrete implementations provide the actual detection strategy (regex patterns, NER, context-aware, or composite).

Methods

Method Summary
IReadOnlyList<PIIEntity> DetectPII(string text)