Constructor PiiExtraction
- Namespace
- LMKit.TextAnalysis
- Assembly
- LM-Kit.NET.dll
PiiExtraction(LM)
Initializes a new instance of PiiExtraction with default entity definitions (all built‐in PiiExtraction.PiiEntityType values except Custom).
public PiiExtraction(LM model)
Parameters
Exceptions
- ArgumentNullException
Thrown if
model
is null.- InvalidModelException
Thrown if
model
is an embedding model or was loaded without weights.
PiiExtraction(LM, List<PiiEntityDefinition>)
Initializes a new instance of PiiExtraction with a custom list of entity definitions.
public PiiExtraction(LM model, List<PiiExtraction.PiiEntityDefinition> definitions)
Parameters
model
LMA valid LM model that is not an embedding‐only model and has tensor weights loaded.
definitions
List<PiiExtraction.PiiEntityDefinition>The list of PiiExtraction.PiiEntityDefinition items (built‐in or custom) that this extractor will use. Must be non-null and contain at least one item.
Exceptions
- ArgumentNullException
Thrown if
model
is null ordefinitions
is null/empty.- InvalidModelException
Thrown if
model
is an embedding model or was loaded without weights.