Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace TextSelectionEntity

This lets the labeler highlight text, by specifying an offset and a length, and apply labels to it.

Properties

Const entityType

entityType: string = "TEXTSELECTION"

Optional extendedMetadata

extendedMetadata: undefined | object

A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: {@code {"bar-key": "value"}}

labels

labels: Array<Label>

A collection of label entities.

textSpan

textSpan: TextSpan

Methods

getDeserializedJsonObj

  • getDeserializedJsonObj(obj: Entity): object

getJsonObj

  • getJsonObj(obj: Entity): object