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.


Field Summary
 
Fields inherited from class edu.stanford.nlp.dbm.DataMatrix
features, matrix
 
Constructor Summary
DSDataMatrix(GrowableMatrix m, IndexedSet f)
           
DSDataMatrix(String filename, IndexedSet f)
           
 
Method Summary
 void add(int index, Featurizable f)
          inserts Featurizable Object into DataMatrix, and returns its index
 
Methods inherited from class edu.stanford.nlp.dbm.BOFDataMatrix
insert
 
Methods inherited from class edu.stanford.nlp.dbm.DataMatrix
add, features, getMatrix, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSDataMatrix

public DSDataMatrix(GrowableMatrix m,
                    IndexedSet f)

DSDataMatrix

public DSDataMatrix(String filename,
                    IndexedSet f)
             throws IOException,
                    FileNotFoundException
Method Detail

add

public void add(int index,
                Featurizable f)
inserts Featurizable Object into DataMatrix, and returns its index



Stanford NLP Group