public class SelectionFunction extends Object
| Constructor and Description |
|---|
SelectionFunction()
Build a new Selection Function
|
| Modifier and Type | Method and Description |
|---|---|
void |
select(Set<Integer> selectedIdSents,
Set<Integer> unwantedIdSents,
CoverageDefinition coverageDefinition,
PrintWriter logFile,
CoverageFeatureProvider cfProvider,
boolean verboseSelect,
DBHandler wikiToDB)
Select a set of vectors according to their usefulness which is defined by the coverageDefinition.
|
boolean |
stopIsOkay(String stopString)
Check, if given stop criterion is okay.
|
public boolean stopIsOkay(String stopString)
stopString - the stop criterionpublic void select(Set<Integer> selectedIdSents, Set<Integer> unwantedIdSents, CoverageDefinition coverageDefinition, PrintWriter logFile, CoverageFeatureProvider cfProvider, boolean verboseSelect, DBHandler wikiToDB) throws Exception
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 progresscfProvider - the list of filenames of the sentencesverboseSelect - if true, get vectors from coverage definition, if false, read vectors from diskwikiToDB - wikiToDBException - ExceptionCopyright © 2000–2016 DFKI GmbH. All rights reserved.