public class CoordinationTransformer extends java.lang.Object implements TreeTransformer
DependencyTreeTransformer
)
QPTreeTransformer
)
Constructor and Description |
---|
CoordinationTransformer(HeadFinder hf) |
CoordinationTransformer(HeadFinder hf,
boolean performMWETransformation)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static Tree |
CCtransform(Tree t)
Transforms t if it contains a coordination in a flat structure
|
static Tree |
gappingTransform(Tree t) |
static void |
main(java.lang.String[] args) |
static Tree |
MWETransform(Tree t)
Puts all multi-word expressions below a single constituent labeled "MWE".
|
static Tree |
prepCCTransform(Tree t) |
static Tree |
removeXOverX(Tree t) |
Tree |
SQflatten(Tree t)
Removes the SQ structure under a WHNP question, such as "Who am I
to judge?".
|
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))
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public CoordinationTransformer(HeadFinder hf)
public CoordinationTransformer(HeadFinder hf, boolean performMWETransformation)
hf
- the headfinderperformMWETransformation
- Parameter for backwards compatibility.
If set to false, multi-word expressions won't be attached to a new "MWE" nodepublic Tree transformTree(Tree t)
transformTree
in interface TreeTransformer
t
- a tree to be transformedpublic Tree SQflatten(Tree t)
public static Tree UCPtransform(Tree t)
t
- a tree to be transformedpublic static Tree CCtransform(Tree t)
t
- a tree to be transformedpublic static Tree MWETransform(Tree t)
public static void main(java.lang.String[] args)