public class CharacterNGramTokenizerFactory extends TokenizerFactory<CharacterNGramTokenizerFactoryImpl> implements java.io.Serializable, weka.core.OptionHandler
Constructor and Description |
---|
CharacterNGramTokenizerFactory() |
Modifier and Type | Method and Description |
---|---|
int |
getNMax() |
int |
getNMin() |
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
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 |
setNMax(int nMax) |
void |
setNMin(int nMin) |
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
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 TokenizerFactory<CharacterNGramTokenizerFactoryImpl>
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class TokenizerFactory<CharacterNGramTokenizerFactoryImpl>
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class TokenizerFactory<CharacterNGramTokenizerFactoryImpl>
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supported@OptionMetadata(displayName="NMax", description="NGram max size.", commandLineParamName="NMax", commandLineParamSynopsis="-NMax <int>", displayOrder=0) public int getNMax()
public void setNMax(int nMax)
@OptionMetadata(displayName="NMin", description="NGram min size.", commandLineParamName="NMin", commandLineParamSynopsis="-NMin <int>", displayOrder=1) public int getNMin()
public void setNMin(int nMin)
public void initializeBackend()
ApiWrapper
initializeBackend
in interface ApiWrapper<CharacterNGramTokenizerFactoryImpl>