public class Example
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
category
Category index of the example
|
protected FileDocument |
document
fileDocument object for the example
|
protected HashMapVector |
hashVector
Representation of the example as a vector of (feature -> weight) mappings
|
protected java.lang.String |
name
Name of the example
|
Constructor and Description |
---|
Example(HashMapVector input,
int cat,
java.lang.String id,
FileDocument doc) |
Modifier and Type | Method and Description |
---|---|
int |
getCategory()
Returns the category of the example
|
FileDocument |
getDocument()
Returns the document of the example
|
HashMapVector |
getHashMapVector()
Returns the hashVector of the example
|
java.lang.String |
getName()
Returns the name of the example
|
void |
setCategory(int cat)
Sets the category of the example
|
void |
setDocument(FileDocument doc)
Sets the document of the example
|
void |
setHashMapVector(HashMapVector v)
Sets the hashVector of the example
|
void |
setName(java.lang.String id)
Sets the name of the example
|
java.lang.String |
toString()
Returns the String representation of the example object
|
protected java.lang.String name
protected int category
protected HashMapVector hashVector
protected FileDocument document
public Example(HashMapVector input, int cat, java.lang.String id, FileDocument doc)
public void setName(java.lang.String id)
public java.lang.String getName()
public void setCategory(int cat)
public int getCategory()
public void setHashMapVector(HashMapVector v)
public HashMapVector getHashMapVector()
public void setDocument(FileDocument doc)
public FileDocument getDocument()
public java.lang.String toString()
toString
in class java.lang.Object