|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.trees.CoordinationTransformer
public class CoordinationTransformer
Coordination transformer transforms a PennTreebank tree containing a coordination in a flat structure in order to get the dependencies right
Constructor Summary | |
---|---|
CoordinationTransformer()
|
Method Summary | |
---|---|
Tree |
CCtransform(Tree t)
Transforms t if it contains a coordination in a flat structure |
static void |
main(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)) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoordinationTransformer()
Method Detail |
---|
public Tree transformTree(Tree t)
transformTree
in interface TreeTransformer
t
- a tree to be transformed
public static Tree UCPtransform(Tree t)
t
- a tree to be transformed
public Tree CCtransform(Tree t)
t
- a tree to be transformed
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |