|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.dfki.lt.mary.dbselection.CoverageDefinition
public class CoverageDefinition
Builds and manages the cover sets
| Constructor Summary | |
|---|---|
CoverageDefinition(FeatureDefinition featDef,
java.lang.String configFile,
boolean holdVectorsInMemory,
byte[][] vectorArray)
Build a new coverage definition and read in the config file |
|
| Method Summary | |
|---|---|
byte[][] |
getVectorArray()
|
byte |
getVectorValue(byte[] vectors,
int vectorIndex,
int valueIndex)
|
void |
initialiseCoverage(java.lang.String[] basenames)
Compute the coverage of the corpus, build and fill the cover sets |
void |
printResultToLog(java.io.PrintWriter logOut)
|
void |
printSelectionDistribution(java.lang.String distributionFile,
java.lang.String developmentFile,
boolean logDevelopment)
Print statistics of the selected sentences and a table of coverage development over time |
void |
printSettings(java.io.PrintWriter out)
Print the settings of the config file |
void |
printTextCorpusStatistics(java.lang.String filename)
Print a statistic of the unit distribution in the corpus |
boolean |
reachedMaxClusteredDiphones()
Check if cover has maximum clustered diphone coverage |
boolean |
reachedMaxClusteredProsody()
Check if cover has maximum clustered prosody coverage |
boolean |
reachedMaxSimpleDiphones()
Check if cover has maximum simple diphone coverage |
boolean |
reachedMaxSimpleProsody()
Check if cover has maximum simple prosody coverage |
void |
readCoverageBin(java.lang.String filename,
FeatureDefinition featDef,
java.lang.String[] basenames)
Read the cover sets from the given file |
void |
updateCover(byte[] coveredFVs)
Add the given feature vectors to the cover |
double |
usefulnessOfFVs(byte[] featureVectors)
Get the usefulness of the given feature vectors Usefulness of a feature vector is defined as the sum of the score for the feature vectors on all levels of the tree. |
void |
writeCoverageBin(java.lang.String filename)
Print the cover sets to the given file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoverageDefinition(FeatureDefinition featDef,
java.lang.String configFile,
boolean holdVectorsInMemory,
byte[][] vectorArray)
readConfigFile - if true, read the config file,
else use default valuesfeatDef - the feature definition for the vectorsconfigFile - the config file nameholdVectorsInMemory - if true, vectors are stored in memory| Method Detail |
|---|
public void initialiseCoverage(java.lang.String[] basenames)
throws java.io.IOException
basenames - the list of filenames
java.io.IOException
public void printTextCorpusStatistics(java.lang.String filename)
throws java.lang.Exception
filename - the file to print to
java.lang.Exceptionpublic void printSettings(java.io.PrintWriter out)
out - the PrintWriter to print to
public void printSelectionDistribution(java.lang.String distributionFile,
java.lang.String developmentFile,
boolean logDevelopment)
throws java.lang.Exception
distributionFile - the file to print the statistics todevelopmentFile - the file to print the coverage development tologDevelopment - if true, print development file
java.lang.Exceptionpublic void printResultToLog(java.io.PrintWriter logOut)
public void updateCover(byte[] coveredFVs)
coveredFVs - the feature vectors to addpublic boolean reachedMaxSimpleDiphones()
public boolean reachedMaxClusteredDiphones()
public boolean reachedMaxSimpleProsody()
public boolean reachedMaxClusteredProsody()
public double usefulnessOfFVs(byte[] featureVectors)
featureVectors - the feature vectors
public byte[][] getVectorArray()
public byte getVectorValue(byte[] vectors,
int vectorIndex,
int valueIndex)
public void writeCoverageBin(java.lang.String filename)
throws java.lang.Exception
filename - the file to print to
java.lang.Exception
public void readCoverageBin(java.lang.String filename,
FeatureDefinition featDef,
java.lang.String[] basenames)
throws java.lang.Exception
filename - the file containing the cover setsfeatDef - the feature definition for the featuresbasenames - the list of basenames
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||