程序包 weka.core
类 Tag
java.lang.Object
weka.core.Tag
- 所有已实现的接口:
Serializable
,RevisionHandler
A
Tag
simply associates a numeric ID with a String description.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
getID()
Gets the numeric ID of the Tag.getIDStr()
Gets the string ID of the Tag.Gets the string description of the Tag.Returns the revision string.void
setID
(int id) Sets the numeric ID of the Tag.void
Sets the string ID of the Tag.void
Sets the string description of the Tag.static String
toOptionList
(Tag[] tags) returns a list that can be used in the listOption methods to list all the available ID strings, e.g.: <0|1|2> or <what|ever>static String
toOptionSynopsis
(Tag[] tags) returns a string that can be used in the listOption methods to list all the available options, i.e., "\t\tID = Text\n" for each optiontoString()
returns the IDStr
-
构造器详细资料
-
Tag
public Tag()Creates a new default Tag -
Tag
Creates a newTag
instance.- 参数:
ident
- the ID for the new Tag.readable
- the description for the new Tag.
-
Tag
Creates a newTag
instance.- 参数:
ident
- the ID for the new Tag.identStr
- the ID string for the new Tag (case-insensitive).readable
- the description for the new Tag.
-
Tag
-
-
方法详细资料
-
getID
public int getID()Gets the numeric ID of the Tag.- 返回:
- the ID of the Tag.
-
setID
public void setID(int id) Sets the numeric ID of the Tag.- 参数:
id
- the ID of the Tag.
-
getIDStr
Gets the string ID of the Tag.- 返回:
- the string ID of the Tag.
-
setIDStr
Sets the string ID of the Tag.- 参数:
str
- the string ID of the Tag.
-
getReadable
Gets the string description of the Tag.- 返回:
- the description of the Tag.
-
setReadable
Sets the string description of the Tag.- 参数:
r
- the description of the Tag.
-
toString
returns the IDStr -
toOptionList
returns a list that can be used in the listOption methods to list all the available ID strings, e.g.: <0|1|2> or <what|ever>- 参数:
tags
- the tags to create the list for- 返回:
- a list of all ID strings
-
toOptionSynopsis
returns a string that can be used in the listOption methods to list all the available options, i.e., "\t\tID = Text\n" for each option- 参数:
tags
- the tags to create the string for- 返回:
- a string explaining the tags
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-