Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 1.71 KB

File metadata and controls

14 lines (11 loc) · 1.71 KB

ShipEngineSDK.Model.RecognizedEntity

An entity is a single piece of data that was recognized in unstructured text. For example, a city, a postal code, package dimensions, insured value, etc. Each entity includes the original text and the parsed value.

Properties

Name Type Description Notes
EndIndex int The index of the last character of this entity within the original text
Score double A confidence score between zero and one that indicates how certain the API is that it correctly recognized this entity
StartIndex int The index of the first character of this entity within the original text
Text string The substring from the original text that was recognized as this entity
Type string The Entity type (e.g. "weight", "person", "address_line1", etc.)
Result Dictionary<string, Object> The normalized value of the entity. Most entity results have a `value` field, which is the normalized value of the entity. For example, if the substring &quot;john doe&quot; was recognized as a &quot;person&quot; entity, then the value might be normalized to have proper capitalization (e.g. &quot;John Doe&quot;). Or if the substring &quot;ft worth&quot; was recognized as a &quot;city&quot; entity, then the value might be normalized to &quot;Fort Worth&quot;. Some entities have other information in addition to, or instead of a `value`. For example, a &quot;dimensions&quot; entity will have separate fields for `length`, `width`, `height`, and `unit`. [optional]