edu.stanford.nlp.dbm
Class DSDataMatrix
java.lang.Object
|
+--edu.stanford.nlp.dbm.DataMatrix
|
+--edu.stanford.nlp.dbm.BOFDataMatrix
|
+--edu.stanford.nlp.dbm.DSDataMatrix
- All Implemented Interfaces:
- MatrixWrapper
- public class DSDataMatrix
- extends BOFDataMatrix
DataMatrix for a DataSet, where duplicate Data are not allowed. If a Datum is added multiple times to DSDataMatrix, the features are added.
Method Summary |
void |
add(int index,
Featurizable f)
inserts Featurizable Object into DataMatrix, and returns its index |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DSDataMatrix
public DSDataMatrix(GrowableMatrix m,
IndexedSet f)
DSDataMatrix
public DSDataMatrix(String filename,
IndexedSet f)
throws IOException,
FileNotFoundException
add
public void add(int index,
Featurizable f)
- inserts Featurizable Object into DataMatrix, and returns its index
Stanford NLP Group