| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.trees.TreeNormalizer
edu.stanford.nlp.trees.international.negra.NegraPennTreeNormalizer
public class NegraPennTreeNormalizer
Tree normalizer for Negra Penn Treebank format.
| Field Summary | |
|---|---|
protected  TreebankLanguagePack | 
tlp
 | 
| Constructor Summary | |
|---|---|
NegraPennTreeNormalizer()
 | 
|
NegraPennTreeNormalizer(TreebankLanguagePack tlp)
 | 
|
| Method Summary | |
|---|---|
protected  String | 
cleanUpLabel(String label)
Remove things like hyphened functional tags and equals from the end of a node label.  | 
 boolean | 
getInsertNPinPP()
 | 
 boolean | 
getLeaveGF()
 | 
 String | 
nonUnaryRootSymbol()
 | 
 String | 
normalizeNonterminal(String category)
Normalizes a nonterminal contents.  | 
 String | 
normalizeTerminal(String leaf)
Normalizes a leaf contents.  | 
 Tree | 
normalizeWholeTree(Tree tree,
                   TreeFactory tf)
Normalize a whole tree -- one can assume that this is the root.  | 
 String | 
rootSymbol()
 | 
 void | 
setInsertNPinPP(boolean b)
 | 
 void | 
setLeaveGF(boolean b)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected final TreebankLanguagePack tlp
| Constructor Detail | 
|---|
public NegraPennTreeNormalizer()
public NegraPennTreeNormalizer(TreebankLanguagePack tlp)
| Method Detail | 
|---|
public String rootSymbol()
public String nonUnaryRootSymbol()
public void setLeaveGF(boolean b)
public boolean getLeaveGF()
public void setInsertNPinPP(boolean b)
public boolean getInsertNPinPP()
public String normalizeTerminal(String leaf)
normalizeTerminal in class TreeNormalizerleaf - The String that decorates the leaf
public String normalizeNonterminal(String category)
normalizeNonterminal in class TreeNormalizercategory - The String that decorates this nonterminal node
public Tree normalizeWholeTree(Tree tree,
                               TreeFactory tf)
normalizeWholeTree in class TreeNormalizertree - The tree to be normalizedtf - the TreeFactory to create new nodes (if needed)
protected String cleanUpLabel(String label)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||