edu.stanford.nlp.trees.international.pennchinese
Class ChineseCollinizer
java.lang.Object
   edu.stanford.nlp.trees.international.pennchinese.ChineseCollinizer
edu.stanford.nlp.trees.international.pennchinese.ChineseCollinizer
- All Implemented Interfaces: 
- TreeTransformer
- public class ChineseCollinizer 
- extends Object- implements TreeTransformer
Performs collinization operations on Chinese trees similar to
 those for English Namely: 
 -  strips all functional & automatically-added tags
 
-  strips all punctuation
 
-  merges PRN and ADVP
 
-  eliminates ROOT (note that there are a few non-unary ROOT nodes;
 these are not eliminated)
 
- Author:
- Roger Levy
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
tf
protected TreeFactory tf
ChineseCollinizer
public ChineseCollinizer(ChineseTreebankLanguagePack ctlp)
ChineseCollinizer
public ChineseCollinizer(ChineseTreebankLanguagePack ctlp,
                         boolean deletePunct)
transformTree
public Tree transformTree(Tree tree)
- 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 theTree.transform()method, which will apply the
 transformer in a bottom-up manner to each localTree,
 and hence the implementation ofTreeTransformershould
 merely examine and change a local (one-level)Tree.
 
- 
- Specified by:
- transformTreein interface- TreeTransformer
 
- 
- Parameters:
- tree- A tree.  Classes implementing this interface can assume
           that the tree passed in is not- null.
- Returns:
- the transformed Tree
 
Stanford NLP Group