|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.trees.international.pennchinese.ChineseCollinizer
public class ChineseCollinizer
Performs collinization operations on Chinese trees similar to those for English Namely:
Field Summary | |
---|---|
protected TreeFactory |
tf
|
Constructor Summary | |
---|---|
ChineseCollinizer(ChineseTreebankLanguagePack ctlp)
|
|
ChineseCollinizer(ChineseTreebankLanguagePack ctlp,
boolean deletePunct)
|
Method Summary | |
---|---|
Tree |
transformTree(Tree tree)
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 |
---|
protected TreeFactory tf
Constructor Detail |
---|
public ChineseCollinizer(ChineseTreebankLanguagePack ctlp)
public ChineseCollinizer(ChineseTreebankLanguagePack ctlp, boolean deletePunct)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |