protected static class TreebankStats.ObservedCorpusStats
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
maxBreadth |
int |
maxDepth |
int |
maxLength |
int |
minBreadth |
int |
minDepth |
int |
minLength |
int |
numTrees |
Counter<java.lang.String> |
posTags |
Counter<java.lang.String> |
words |
Constructor and Description |
---|
ObservedCorpusStats(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addPhrasalBranch(java.lang.String label,
int factor) |
void |
addStatsForTree(int yieldLength,
int depth,
int breadth) |
void |
computeFinalValues() |
void |
display(boolean displayWords,
boolean displayOOV) |
java.lang.String |
getName() |
double |
getPercLensLessThan(int maxLen) |
public final Counter<java.lang.String> words
public final Counter<java.lang.String> posTags
public int numTrees
public int minLength
public int maxLength
public int minDepth
public int maxDepth
public int minBreadth
public int maxBreadth
public java.lang.String getName()
public void addStatsForTree(int yieldLength, int depth, int breadth)
public double getPercLensLessThan(int maxLen)
public void addPhrasalBranch(java.lang.String label, int factor)
public void display(boolean displayWords, boolean displayOOV)
public void computeFinalValues()