public class StemmingPreProcessorImpl
extends org.deeplearning4j.text.tokenization.tokenizer.preprocessor.CommonPreprocessor
implements java.io.Serializable, weka.core.OptionHandler
Constructor and Description |
---|
StemmingPreProcessorImpl() |
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.
|
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
java.lang.String |
preProcess(java.lang.String token) |
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setStemmer(weka.core.stemmers.Stemmer stemmer) |
public java.lang.String globalInfo()
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String preProcess(java.lang.String token)
preProcess
in interface org.deeplearning4j.text.tokenization.tokenizer.TokenPreProcess
preProcess
in class org.deeplearning4j.text.tokenization.tokenizer.preprocessor.CommonPreprocessor
@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)