Interface of items with an id value.

Implements

Properties

feats: Map<string, string>

Custom features.

gkbId: null | string

Unique identifier of this tag in Geneea knowledge-base. null if not found.

gkbProperties: GkbProperty[]

GKB properties. Since 3.3.0.

id: string

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

mentions: TagMention[]

Text segments related to this tag. Empty if not appropriate/requested/supported.

relevance: number

Relevance of the tag relative to the content of the document.

sentiment: null | Sentiment

Sentiment of this tag. Not supported yet.

stdForm: string

Standard form of the tag, abstracting from its alternative names.

type: string

Domain-specific type (e.g. content, theme, iAB, department).

vectors: null | Vector[]

Optional vectors for this tag.

TYPE_TOPIC: string = "topic"

Type of the tag with the main topic of the document

TYPE_TOPIC_DISTRIBUTION: "topic.distribution"

Type of the tags with the topic distribution of the document

Methods

  • Returns a string representation of an object.

    Returns string

  • Tag factory method, public constructor.

    Parameters

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

    Returns Tag