DocumentElement
is a convenient extension of the base NLGElement
class. It used to define elements that form part of the textual structure (documents, sections, paragraphs, sentences, lists). It essentially operates as the base class with the addition of some convenience methods for getting and setting features specific to this type of element.
TextElements
can be structured in a tree-like structure where elements can contain child components. These child components can in turn contain other child components and so on. There are restrictions on the type of child components a particular element type can have. These are explained under the DocumentCategory
enumeration.
Instances of this class can be created through the static create methods in the OrthographyProcessor
.
@author D. Westwater, University of Aberdeen.
@version 4.0