public class SelectionFunction extends Object
|Constructor and Description|
Build a new Selection Function
|Modifier and Type||Method and Description|
Select a set of vectors according to their usefulness which is defined by the coverageDefinition.
Check, if given stop criterion is okay.
public boolean stopIsOkay(String stopString)
stopString- the stop criterion
public 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 sentences
unwantedIdSents- the list of unwanted id sentences
coverageDefinition- the coverage definition for the feature vectors
logFile- the logFile to document the progress
cfProvider- the list of filenames of the sentences
verboseSelect- if true, get vectors from coverage definition, if false, read vectors from disk
Copyright © 2000–2016 DFKI GmbH. All rights reserved.