|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.filters.Filter
gate.creole.ml.weka.StringToNominalFilter
This filter converts one or more string attributes from the input dataset into nominal attributes.
Field Summary | |
static String |
FREQUENCY
Constant for conversion method. |
static String |
TFIDF
Constant for conversion method. |
Constructor Summary | |
StringToNominalFilter()
Anonymous constructor. |
Method Summary | |
boolean |
batchFinished()
Signifies that this batch of input to the filter is finished. |
String[] |
getOptions()
|
boolean |
input(weka.core.Instance instance)
Input an instance for filtering. |
Enumeration |
listOptions()
|
static void |
main(String[] args)
|
boolean |
setInputFormat(weka.core.Instances instanceInfo)
Sets the format of the input instances. |
void |
setOptions(String[] options)
|
Methods inherited from class weka.filters.Filter |
batchFilterFile, filterFile, getOutputFormat, inputFormat, isOutputFormatDefined, numPendingOutput, output, outputFormat, outputPeek, useFilter |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String FREQUENCY
public static final String TFIDF
Constructor Detail |
public StringToNominalFilter()
Method Detail |
public boolean setInputFormat(weka.core.Instances instanceInfo) throws Exception
instanceInfo
- an Instances object containing the input
instance structure (any instances contained in the object are
ignored - only the structure is required).
weka.core.UnsupportedAttributeTypeException
- if the selected attribute
is not a string attribute.
Exception
public boolean input(weka.core.Instance instance)
instance
- the input instance.
IllegalStateException
- if no input structure has been defined.public boolean batchFinished()
IllegalStateException
- if no input structure has been defined.public static void main(String[] args)
public Enumeration listOptions()
listOptions
in interface weka.core.OptionHandler
public void setOptions(String[] options) throws Exception
setOptions
in interface weka.core.OptionHandler
Exception
public String[] getOptions()
getOptions
in interface weka.core.OptionHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |