public class ClauseCoordinationRule extends AggregationRule
These operations only apply to sentences whose front modifiers are identical,
that is, sentences where, for every pair s1 and s2,
s1.getFrontModifiers().equals(s2.getFrontModifiers()).
Note:: it is not recommended to use this rule in addition to
BackwardConjunctionReductionRule and/or
ForwardConjunctionReductionRule.
factory| Constructor and Description |
|---|
ClauseCoordinationRule()
Constructs an instance of the ClauseCoordinationRule
|
| Modifier and Type | Method and Description |
|---|---|
NLGElement |
apply(NLGElement previous,
NLGElement next)
Applies aggregation to two NLGElements e1 and e2, succeeding only if they
are clauses (that is, e1.getCategory() == e2.getCategory ==
PhraseCategory.CLAUSE). |
apply, apply, getFactory, setFactorypublic ClauseCoordinationRule()
public NLGElement apply(NLGElement previous, NLGElement next)
PhraseCategory.CLAUSE).apply in class AggregationRuleprevious - the first sentencenext - the second sentencenull
otherwiseCopyright © 2020. All Rights Reserved.