public class FeatureSelection extends Object implements Serializable
| Constructor and Description |
|---|
FeatureSelection(Alphabet dictionary) |
FeatureSelection(Alphabet dictionary,
BitSet selectedFeatures) |
FeatureSelection(RankedFeatureVector rsv,
int numFeatures) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index) |
void |
add(Object o) |
int |
cardinality() |
Object |
clone() |
boolean |
contains(int index) |
boolean |
contains(Object o) |
static FeatureSelection |
createFromRegex(Alphabet dictionary,
Pattern regex)
Creates a FeatureSelection that includes only those features whose names match a given regex.
|
Alphabet |
getAlphabet() |
BitSet |
getBitSet() |
int |
nextDeselectedIndex(int index) |
int |
nextSelectedIndex(int index) |
void |
or(FeatureSelection fs) |
void |
remove(int index) |
void |
remove(Object o) |
public FeatureSelection(Alphabet dictionary)
public FeatureSelection(RankedFeatureVector rsv, int numFeatures)
public static FeatureSelection createFromRegex(Alphabet dictionary, Pattern regex)
dictionary - A dictionary of fetaure names. Entries must be string.regex - Features whose names match this pattern will be included.public Alphabet getAlphabet()
public int cardinality()
public BitSet getBitSet()
public void add(Object o)
public void add(int index)
public void remove(Object o)
public void remove(int index)
public boolean contains(Object o)
public boolean contains(int index)
public void or(FeatureSelection fs)
public int nextSelectedIndex(int index)
public int nextDeselectedIndex(int index)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.