public class ChineseCollinizer extends Object implements TreeTransformer
Modifier and Type | Field and Description |
---|---|
protected TreeFactory |
tf |
Constructor and Description |
---|
ChineseCollinizer(ChineseTreebankLanguagePack ctlp) |
ChineseCollinizer(ChineseTreebankLanguagePack ctlp,
boolean deletePunct) |
Modifier and Type | Method and Description |
---|---|
Tree |
transformTree(Tree tree)
Does whatever one needs to do to a particular tree.
|
protected TreeFactory tf
public ChineseCollinizer(ChineseTreebankLanguagePack ctlp)
public ChineseCollinizer(ChineseTreebankLanguagePack ctlp, boolean deletePunct)
public Tree transformTree(Tree tree)
TreeTransformer
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
.transformTree
in interface TreeTransformer
tree
- A tree. Classes implementing this interface can assume
that the tree passed in is not null
.Tree