A single sentence with its morphological, syntactical, deep-syntactical and sentimental analysis.

Implements

Properties

id: string

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

paragraph: Paragraph

TODO: osetrit ze je inicializovany

root: null | Token

Token which is the root of the syntactic structure of the sentence.

sentiment: null | Sentiment

Optional sentiment of the sentence.

tectoRoot: null | TectoToken

Tecto token which is the root of the tecto structure of the sentence.

tectoTokens: null | TectoToken[]

All tecto tokens of the sentence; the order has no meaning; null if not avaialable.

tokens: Token[]

All tokens of the sentence ordered by word-order.

vectors: null | Vector[]

Optional vectors of this paragraph.

TYPE_ABSTRACT: "ABSTRACT"

Type of a paragraph representing an abstract (lead or perex) of the whole document.

TYPE_BODY: "BODY"

Type of a paragraph containing regular text (for now this is used for the whole body of the document).

TYPE_SECTION_HEADING: "section_heading"

Type of a paragraph representing a section/chapter heading (not used yet).

TYPE_TITLE: "TITLE"

Type of a paragraph representing a title of the whole document. Also used for email subjects.

Methods