public class Aggregator extends NLGModule
| Constructor and Description |
|---|
Aggregator()
Creates an instance of Aggregator
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(AggregationRule rule)
Add a rule to this aggregator.
|
List<AggregationRule> |
getRules()
Get the rules in this aggregator.
|
void |
initialise()
Performs one-time initialisation of the module.
|
List<NLGElement> |
realise(List<NLGElement> elements)
Apply aggregation to a list of elements.
|
NLGElement |
realise(NLGElement element)
Apply aggregation to a single phrase.
|
void |
setFactory(NLGFactory factory)
Set the factory that this aggregator should use to create phrases.
|
getLexicon, setLexiconpublic void initialise()
initialise in class NLGModulepublic void setFactory(NLGFactory factory)
factory - the phrase factorypublic void addRule(AggregationRule rule)
rule - the rulepublic List<AggregationRule> getRules()
public NLGElement realise(NLGElement element)
public List<NLGElement> realise(List<NLGElement> elements)
addRule(AggregationRule) and applies them to
the elements.Copyright © 2020. All Rights Reserved.