edu.stanford.nlp.trees
Class CoordinationTransformer

java.lang.Object
  extended by 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

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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordinationTransformer

public CoordinationTransformer()
Method Detail

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