public class ClassLabelFromPatternFilter extends AbstractStreamFilter
Modifier and Type | Class and Description |
---|---|
static class |
ClassLabelFromPatternFilter.Parameterizer
Parameterization class.
|
BundleStreamSource.Event
Modifier and Type | Field and Description |
---|---|
(package private) BitSet |
labelcols
Bitset of label columns
|
(package private) BundleMeta |
meta
Current meta data
|
(package private) SimpleClassLabel |
negative
Label to return for negative matches.
|
(package private) Pattern |
pattern
Matching pattern.
|
(package private) SimpleClassLabel |
positive
Label to return for positive matches.
|
source
Constructor and Description |
---|
ClassLabelFromPatternFilter(Pattern pattern,
SimpleClassLabel positive,
SimpleClassLabel negative)
Constructor.
|
ClassLabelFromPatternFilter(Pattern pattern,
String positive,
String negative)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
data(int rnum)
Access a particular object and representation.
|
BundleMeta |
getMeta()
Get the current meta data.
|
BundleStreamSource.Event |
nextEvent()
Get the next event
|
filter, init
BundleMeta meta
BitSet labelcols
SimpleClassLabel positive
SimpleClassLabel negative
Pattern pattern
public ClassLabelFromPatternFilter(Pattern pattern, String positive, String negative)
pattern
- Pattern for matchingpositive
- Positive labelnegative
- Negative labelpublic ClassLabelFromPatternFilter(Pattern pattern, SimpleClassLabel positive, SimpleClassLabel negative)
pattern
- Pattern for matchingpositive
- Positive labelnegative
- Negative labelpublic BundleMeta getMeta()
BundleStreamSource
public Object data(int rnum)
BundleStreamSource
rnum
- Representation numberpublic BundleStreamSource.Event nextEvent()
BundleStreamSource