Tokens within a single sentence; ordered by word-order; non-empty, continuous or discontinuous.

Constructors

Properties

isContinuous: boolean

Is this support a continuous sequence of tokens, i.e. a token span?

tokens: Token[]

The tokens of this support.

Accessors

  • get charSpan(): CharSpan
  • The character span between the first and last token relative to the enclosing paragraph; for discontinuous support this includes intervening gaps.

    Returns CharSpan

  • get firstCharParaOffset(): number
  • Offset of the first character of these tokens within the enclosing paragraph.

    Returns number

  • get lastCharParaOffset(): number
  • Offset of the last character of these tokens within the enclosing paragraph.

    Returns number

  • get text(): string
  • Substring of a full text as denoted by this support (before correction). For discontinuous supports, the result includes the intervening gaps.

    Returns string

Methods

  • The coverage texts of each of the continuous spans, ordered by word-order.

    Returns string[]