public class StemmingPreProcessor extends TokenPreProcess<StemmingPreProcessorImpl> implements java.io.Serializable, weka.core.OptionHandler
StemmingPreProcessorImpl
.Constructor and Description |
---|
StemmingPreProcessor() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
weka.core.stemmers.Stemmer |
getStemmer() |
java.lang.String |
globalInfo()
Returns a string describing this object.
|
void |
initializeBackend()
Initialize the DL4J backend.
|
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setStemmer(weka.core.stemmers.Stemmer stemmer) |
create, getBackend, setBackend
public java.lang.String globalInfo()
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class TokenPreProcess<StemmingPreProcessorImpl>
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class TokenPreProcess<StemmingPreProcessorImpl>
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class TokenPreProcess<StemmingPreProcessorImpl>
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supported@OptionMetadata(displayName="stemmer", description="The Weka stemmer to use.", commandLineParamName="stemmer", commandLineParamSynopsis="-stemmer <String>", displayOrder=0) public weka.core.stemmers.Stemmer getStemmer()
public void setStemmer(weka.core.stemmers.Stemmer stemmer)
public void initializeBackend()
ApiWrapper
initializeBackend
in interface ApiWrapper<StemmingPreProcessorImpl>