public class NGramTokenizerFactory extends TokenizerFactory<NGramTokenizerFactoryImpl> implements java.io.Serializable, weka.core.OptionHandler
Constructor and Description |
---|
NGramTokenizerFactory() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDelimiters() |
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 |
setDelimiters(java.lang.String delimiters) |
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<NGramTokenizerFactoryImpl>
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class TokenizerFactory<NGramTokenizerFactoryImpl>
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class TokenizerFactory<NGramTokenizerFactoryImpl>
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)
@OptionMetadata(displayName="delimiters", description="Set of delimiter characters to use in tokenizing (\\r, \\n and \\t can be used for carriage-return, line-feed and tab).", commandLineParamName="delimiters", commandLineParamSynopsis="-delimiters <int>", displayOrder=2) public java.lang.String getDelimiters()
public void setDelimiters(java.lang.String delimiters)
public void initializeBackend()
ApiWrapper
initializeBackend
in interface ApiWrapper<NGramTokenizerFactoryImpl>