Constructor EntityDefinition
- Namespace
- LMKit.TextAnalysis
- Assembly
- LM-Kit.NET.dll
EntityDefinition(NamedEntityType)
Creates a definition for one of the built‐in enum types.
public EntityDefinition(NamedEntityRecognition.NamedEntityType entityType)
Parameters
entityType
NamedEntityRecognition.NamedEntityTypeA value from NamedEntityRecognition.NamedEntityType EXCEPT Custom.
Exceptions
- ArgumentException
Thrown if
entityType
is Custom.
EntityDefinition(string)
Creates a definition for a fully custom entity label.
public EntityDefinition(string label)
Parameters
label
stringThe custom string label (e.g. “DiseaseName”). Cannot be null or whitespace.
Exceptions
- ArgumentException
Thrown if
label
is null, empty, or whitespace.