public class LearnImportantFeatures extends Object
| Modifier and Type | Field and Description |
|---|---|
Class |
answerClass |
String |
answerLabel |
| Constructor and Description |
|---|
LearnImportantFeatures() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getRandomBoolean(Random random,
double p) |
Counter<String> |
getTopFeatures(Iterator<Pair<Map<String,DataInstance>,File>> sentsf,
double perSelectRand,
double perSelectNeg,
String externalFeatureWeightsFileLabel) |
static void |
main(String[] args) |
void |
setUp() |
@Execution.Option(name="answerClass") public Class answerClass
@Execution.Option(name="answerLabel") public String answerLabel
public void setUp()
public static boolean getRandomBoolean(Random random, double p)
public Counter<String> getTopFeatures(Iterator<Pair<Map<String,DataInstance>,File>> sentsf, double perSelectRand, double perSelectNeg, String externalFeatureWeightsFileLabel) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static void main(String[] args)