NLGElement
is the base class that all elements extend from. This is abstract and cannot therefore be instantiated itself. The additional element classes should be used to correctly identify the type of element required.
Realisation in SimpleNLG revolves around a tree structure. Each node in the tree is represented by a NLGElement
, which in turn may have child nodes. The job of the processors is to replace various types of elements with other elements. The eventual goal, once all the processors have been run, is to produce a single string element representing the final realisation.
The features are stored in a Map
of String
(the feature name) and Object
(the value of the feature).
|
|