|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.dbm.LabelMatrix
Wrapper for a Matrix whose columns are Label Vectors of Labeled Objects
Field Summary | |
protected IndexedSet |
labels
|
protected GrowableMatrix |
matrix
|
Constructor Summary | |
LabelMatrix(GrowableMatrix matrix,
IndexedSet labels)
|
|
LabelMatrix(String matrixfile,
IndexedSet labels)
|
Method Summary | |
int |
add(Labeled t)
inserts Labeled Object into LabelMatrix, and returns its index |
List |
getLabels()
|
Matrix |
getMatrix()
Returns underlying Matrix |
Array |
insert(Iterator iter)
creates boolean vector. |
Array |
toLabelVector(Labeled t)
inserts a Labeled object into the LabelMatrix, and returns the inserted LabelVector |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected GrowableMatrix matrix
protected IndexedSet labels
Constructor Detail |
public LabelMatrix(GrowableMatrix matrix, IndexedSet labels)
public LabelMatrix(String matrixfile, IndexedSet labels) throws IOException, FileNotFoundException
Method Detail |
public Array insert(Iterator iter) throws IOException
IOException
public Array toLabelVector(Labeled t) throws IOException
IOException
public int add(Labeled t) throws IOException
IOException
public List getLabels()
public Matrix getMatrix()
MatrixWrapper
getMatrix
in interface MatrixWrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |