A single occurence of a tag in the text.

Implements

Properties

feats: Map<string, string>

Custom features/properties.

id: string

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

mentionOf: Tag

Tag this mention belongs to. Set from outsied.

sentiment: null | Sentiment

Sentiment of this mention. Not supported yet.

tokens: TokenSupport

Tokens of this tag mention.

vectors: null | Vector[]

Optional vectors for this tag mention.

Methods

  • Checks whether the tag mention is continuous (most are).

    Returns boolean

  • Sentence containing this tag mention. Tag mention belongs to maximally one sentence; artificial mentions without tokens belong to no sentence.

    Returns Sentence

  • Returns a string representation of an object.

    Returns string

  • TagMention factory method, public constructor.

    Parameters

    • id: string
    • tokens: Token[]
    • feats: null | Map<string, string> = null
    • sentiment: null | Sentiment = null
    • vectors: null | Vector[] = null

    Returns TagMention