public class CoordinationTransformer extends java.lang.Object implements TreeTransformer
| Constructor and Description |
|---|
CoordinationTransformer() |
| Modifier and Type | Method and Description |
|---|---|
static Tree |
CCtransform(Tree t)
Transforms t if it contains a coordination in a flat structure
|
static void |
main(java.lang.String[] args) |
Tree |
transformTree(Tree t)
Transforms t if it contains a coordination in a flat structure (CCtransform)
and transforms UCP (UCPtransform).
|
static Tree |
UCPtransform(Tree t)
Transforms t if it contains an UCP, it will change the UCP tag
into the phrasal tag of the first word of the UCP
(UCP (JJ electronic) (, ,) (NN computer) (CC and) (NN building))
will become
(ADJP (JJ electronic) (, ,) (NN computer) (CC and) (NN building))
|
public Tree transformTree(Tree t)
transformTree in interface TreeTransformert - a tree to be transformedpublic static Tree UCPtransform(Tree t)
t - a tree to be transformedpublic static Tree CCtransform(Tree t)
t - a tree to be transformedpublic static void main(java.lang.String[] args)