|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.dbm.DataMatrix
Class with methods to construct a DataMatrix (such as a term-document matrix), from the initial Objects (such as Documents).
Field Summary | |
protected IndexedSet |
features
|
protected GrowableMatrix |
matrix
|
Constructor Summary | |
DataMatrix()
|
Method Summary | |
int |
add(Featurizable f)
inserts Featurizable Object into DataMatrix, and returns its index |
List |
features()
|
Matrix |
getMatrix()
Returns underlying Matrix |
protected void |
initialize(GrowableMatrix m,
IndexedSet f)
initializes DataMatrix with Matrix m and SerialIndexed set f |
protected abstract Array |
insert(Collection c)
inserts the elements in a Collection into the DataMatrix, and returns the inserted FeatureVector |
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 features
Constructor Detail |
public DataMatrix()
Method Detail |
protected void initialize(GrowableMatrix m, IndexedSet f)
protected abstract Array insert(Collection c)
public int add(Featurizable f)
public List features()
public Matrix getMatrix()
MatrixWrapper
getMatrix
in interface MatrixWrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |