|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.tools.dbselection.SelectionFunction
public class SelectionFunction
Selects sentences from a given set using the greedy algorithm. At each step, the most useful sentence is added to the set of selected sentences. Selection is stopped when the stop criterion is reached. Usefulness of sentences is determined by CoverageDefinition.
| Constructor Summary | |
|---|---|
SelectionFunction()
Build a new Selection Function |
|
| Method Summary | |
|---|---|
void |
select(java.util.Set<java.lang.Integer> selectedIdSents,
java.util.Set<java.lang.Integer> unwantedIdSents,
CoverageDefinition coverageDefinition,
java.io.PrintWriter logFile,
int[] idSentenceList,
boolean holdVectorsInMemory,
boolean verboseSelect,
DBHandler wikiToDB)
Select a set of vectors according to their usefulness which is defined by the coverageDefinition. |
boolean |
stopIsOkay(java.lang.String stopString)
Check, if given stop criterion is okay. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectionFunction()
| Method Detail |
|---|
public boolean stopIsOkay(java.lang.String stopString)
stopString - the stop criterion
public void select(java.util.Set<java.lang.Integer> selectedIdSents,
java.util.Set<java.lang.Integer> unwantedIdSents,
CoverageDefinition coverageDefinition,
java.io.PrintWriter logFile,
int[] idSentenceList,
boolean holdVectorsInMemory,
boolean verboseSelect,
DBHandler wikiToDB)
throws java.io.IOException
selectedIdSents - the list of selected id sentencesunwantedIdSents - the list of unwanted id sentencescoverageDefinition - the coverage definition for the feature vectorslogFile - the logFile to document the progressbasenameList - the list of filenames of the sentencesholdVectorsInMemory - if true, get vectors from coverage definition,
if false, read vectors from diskverbose - print output also to command line
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||