A data class encapsulating an Entity.

Implements

Properties

feats: Map<string, string>

Custom features/properties.

gkbId: null | string = null

Unique identifier of this entity in Geneea knowladge base.

gkbProperties: GkbProperty[]

GKB properties. Since 3.3.0.

id: string

ID of the entity used to refer to it from other objects.

mentions: EntityMention[]

Actual occurences of this entity in the text. Empty if not requested/supported.

sentiment: null | Sentiment = null

Sentiment of this entity. null if not requested.

stdForm: string

Standard form of the entity, abstracting from alternative names.

type: string

Basic type of this entity (e.g. person, location, ...).

vectors: null | Vector[] = null

Optional vectors for this entity.

Methods

  • Returns a string representation of an object.

    Returns string

  • Entity factory method, public constructor.

    Parameters

    • id: string
    • gkbId: null | string = null
    • stdForm: string
    • type: string
    • mentions: null | EntityMention[] = null
    • feats: null | Map<string, string> = null
    • sentiment: null | Sentiment = null
    • vectors: null | Vector[] = null
    • gkbProperties: null | GkbProperty[] = null

    Returns Entity