edu.stanford.nlp.trees
Class ChineseCollinizer

java.lang.Object
  |
  +--edu.stanford.nlp.trees.ChineseCollinizer
All Implemented Interfaces:
TreeTransformer

public class ChineseCollinizer
extends Object
implements TreeTransformer

Performs collinization operations on Chinese trees similar to those for English Namely:

Author:
Roger Levy

Field Summary
protected  TreeFactory tf
           
 
Constructor Summary
ChineseCollinizer()
           
ChineseCollinizer(boolean deletePunct)
           
 
Method Summary
 Tree transformTree(Tree tree, TreeFactory dummy)
          Does whatever one needs to do to a particular tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tf

protected TreeFactory tf
Constructor Detail

ChineseCollinizer

public ChineseCollinizer()

ChineseCollinizer

public ChineseCollinizer(boolean deletePunct)
Method Detail

transformTree

public Tree transformTree(Tree tree,
                          TreeFactory dummy)
Description copied from interface: TreeTransformer
Does whatever one needs to do to a particular tree. This routine is passed a whole Tree, and could itself work recursively, but the canonical usage is to invoke this method via the Tree.transform() method, which will apply the transformer in a bottom-up manner to each local Tree, and hence the implementation of TreeTransformer should merely examine and change a local (one-level) Tree.

Specified by:
transformTree in interface TreeTransformer
Parameters:
tree - A tree. Classes implementing this interface can assume that the tree passed in is not null.
dummy - The TreeFactory which may be used for creating new nodes for the returned Tree. If the particular implementation never actually creates new nodes, then it is acceptable to pass null as this second argument
Returns:
the transformed Tree


Stanford NLP Group