edu.stanford.nlp.trees
Class CoordinationTransformer
java.lang.Object
edu.stanford.nlp.trees.CoordinationTransformer
- All Implemented Interfaces:
- TreeTransformer
public class CoordinationTransformer
- extends Object
- implements TreeTransformer
Coordination transformer transforms a PennTreebank tree containing a coordination in a flat structure
in order to get the dependencies right
- Author:
- Marie-Catherine de Marneffe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoordinationTransformer
public CoordinationTransformer()
transformTree
public Tree transformTree(Tree t)
- Transforms t if it contains a coordination in a flat structure (CCtransform)
and transforms UCP (UCPtransform)
- Specified by:
transformTree
in interface TreeTransformer
- Parameters:
t
- a tree to be transformed
- Returns:
- t transformed
UCPtransform
public static Tree UCPtransform(Tree t)
CCtransform
public Tree CCtransform(Tree t)
- Transforms t if it contains a coordination in a flat structure
- Parameters:
t
- a tree to be transformed
- Returns:
- t transformed
main
public static void main(String[] args)
Stanford NLP Group