Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace ResolvedEntity

Resolved entity.

Properties

id

id: string

id of the resolved entity in input

length

length: number

length of resolved entity in input Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

offset

offset: number

offset of resolved entity in input Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

text

text: string

Entity text like name of person, location, and so on.

type

type: string

Type of entity text like PER, LOC.

value

value: object

key and value pair for resolved entities. keys can be specific for each type of resolved entity. Values can be instances of resolvedEntity, arrays of resolvedEntities, primitives, or custom JSON.

Type declaration

  • [key: string]: string

Functions

getDeserializedJsonObj

getJsonObj