LabelEntity
public sealed class LabelEntityA recognised piece of information with confidence, sources and evidence.
Constructors
| Signature | Description |
|---|---|
# LabelEntity() |
Properties
| Property | Type | Description |
|---|---|---|
Bounds { get; set; } | ExtractBox | Union of the source boxes. |
Carrier { get; init; } | string | Carrier id (ups, fedex, dhl, usps, royalmail …) for tracking numbers and carrier entities. |
CheckDigitValid { get; init; } | bool? | Check digit result where the format has a public check digit (null: none or not verified). |
Confidence { get; set; } | double | Rule-based confidence 0–1 (not a probability). |
required Evidence { get; set; } | string | Why the entity was recognised: keyword, pattern, GS1 AI, check digit, layout. |
Normalized { get; init; } | string | Normalised value: compact tracking number, ISO date, weight in kg/lb, E.164-like phone … |
Properties { get; init; } | SortedDictionary<string, string> | Structured parts, e.g. address blocks: name, company, street, postalCode, city, state, country, countryCode, contact, phone, email; tracking numbers: service, format; dates: kind, ambiguous. |
Sources { get; init; } | List<EntitySource> | |
Type { get; init; } | EntityType | |
required Value { get; init; } | string | Value as printed or encoded (address blocks: the lines joined with "\n"). |
Methods
| Method Signature | Returns | Description |
|---|---|---|
# ToString() | string |

