类 CharacterDelimitedTokenizer
java.lang.Object
weka.core.tokenizers.Tokenizer
weka.core.tokenizers.CharacterDelimitedTokenizer
- 所有已实现的接口:
Serializable
,Enumeration
,OptionHandler
,RevisionHandler
- 直接已知子类:
NGramTokenizer
,WordTokenizer
Abstract superclass for tokenizers that take characters as delimiters.
- 版本:
- $Revision: 1.3 $
- 作者:
- fracpete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyGet the value of delimiters (not backquoted).String[]
Gets the current option settings for the OptionHandler.Returns an enumeration of all the available options..void
setDelimiters
(String value) Set the value of delimiters.void
setOptions
(String[] options) Sets the OptionHandler's options using the given list.从类继承的方法 weka.core.tokenizers.Tokenizer
globalInfo, hasMoreElements, nextElement, runTokenizer, tokenize, tokenize
从接口继承的方法 java.util.Enumeration
asIterator
从接口继承的方法 weka.core.RevisionHandler
getRevision
-
构造器详细资料
-
CharacterDelimitedTokenizer
public CharacterDelimitedTokenizer()
-
-
方法详细资料
-
listOptions
Returns an enumeration of all the available options..- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中Tokenizer
- 返回:
- an enumeration of all available options.
-
getOptions
Gets the current option settings for the OptionHandler.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中Tokenizer
- 返回:
- the list of current option settings as an array of strings
-
setOptions
Sets the OptionHandler's options using the given list. All options will be set (or reset) during this call (i.e. incremental setting of options is not possible).- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中Tokenizer
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getDelimiters
Get the value of delimiters (not backquoted).- 返回:
- Value of delimiters.
-
setDelimiters
Set the value of delimiters. For convenienve, the strings "\r", "\n", "\t", "\'", "\\" get automatically translated into their character representations '\r', '\n', '\t', '\'', '\\'. This means, one can either usesetDelimiters("\r\n\t\\");
orsetDelimiters("\\r\\n\\t\\\\");
.- 参数:
value
- Value to assign to delimiters.- 另请参阅:
-
delimitersTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-