public class FeatureConjunction extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
FeatureConjunction.List |
| Constructor and Description |
|---|
FeatureConjunction(Alphabet dictionary,
int[] features) |
FeatureConjunction(Alphabet dictionary,
int[] features,
boolean[] negations) |
FeatureConjunction(String name,
Alphabet dictionary,
int[] features,
boolean[] negations) |
FeatureConjunction(String name,
Alphabet dictionary,
int[] features,
boolean[] negations,
boolean checkSorted) |
FeatureConjunction(String name,
Alphabet dictionary,
int[] features,
boolean[] negations,
boolean checkSorted,
boolean copyFeatures,
boolean copyNegations)
If negations[i] is true, insist that the feature has non-zero
value; if false, insist that it has zero value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTo(AugmentableFeatureVector fv) |
void |
addTo(AugmentableFeatureVector fv,
double value) |
void |
addTo(AugmentableFeatureVector fv,
double value,
FeatureSelection fs) |
static boolean |
featuresOverlap(Alphabet dictionary,
int feature1,
int feature2) |
static int[] |
getFeatureIndices(Alphabet dictionary,
String featureConjunctionName) |
int |
getIndex() |
static String |
getName(Alphabet dictionary,
int[] features) |
static String |
getName(Alphabet dictionary,
int[] features,
boolean[] negations) |
static String |
getName(Alphabet dictionary,
int feature1,
int feature2) |
static boolean |
isValidConjunction(int[] features) |
boolean |
satisfiedBy(FeatureVector fv) |
public FeatureConjunction(String name, Alphabet dictionary, int[] features, boolean[] negations, boolean checkSorted, boolean copyFeatures, boolean copyNegations)
public FeatureConjunction(String name, Alphabet dictionary, int[] features, boolean[] negations, boolean checkSorted)
public FeatureConjunction(String name, Alphabet dictionary, int[] features, boolean[] negations)
public FeatureConjunction(Alphabet dictionary, int[] features, boolean[] negations)
public FeatureConjunction(Alphabet dictionary, int[] features)
public static boolean isValidConjunction(int[] features)
public static boolean featuresOverlap(Alphabet dictionary, int feature1, int feature2)
public static int[] getFeatureIndices(Alphabet dictionary, String featureConjunctionName)
public boolean satisfiedBy(FeatureVector fv)
public int getIndex()
public void addTo(AugmentableFeatureVector fv, double value, FeatureSelection fs)
public void addTo(AugmentableFeatureVector fv, double value)
public void addTo(AugmentableFeatureVector fv)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.