|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.Feature
public class Feature
A name for a feature. Features are hierarchical, so names are structured: each name is an array of names from the heirarchy.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
Feature(java.lang.String name)
Create a feature. |
|
Feature(java.lang.String[] name)
Create a feature. |
|
Feature(java.lang.String[] name,
int id)
Create a feature with its feature ID. |
|
Feature(java.lang.String name,
int id)
Create a feature. |
Method Summary | |
---|---|
int |
compareTo(Feature other)
Implements Comparable |
boolean |
equals(java.lang.Object object)
Overrides equals |
int |
getID()
|
java.lang.String[] |
getName()
|
java.lang.String |
getPart(int i)
|
int |
hashCode()
|
int |
numericName()
This is used for algorithms which only support a vector of features (such as SVM). |
int |
size()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public Feature(java.lang.String[] name, int id)
public Feature(java.lang.String[] name)
public Feature(java.lang.String name, int id)
public Feature(java.lang.String name)
Method Detail |
---|
public int compareTo(Feature other)
compareTo
in interface java.lang.Comparable<Feature>
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int size()
public java.lang.String getPart(int i)
public java.lang.String[] getName()
public int getID()
public int numericName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |