edu.stanford.nlp.dbm
Class BOFDataMatrix

java.lang.Object
  |
  +--edu.stanford.nlp.dbm.DataMatrix
        |
        +--edu.stanford.nlp.dbm.BOFDataMatrix
All Implemented Interfaces:
MatrixWrapper
Direct Known Subclasses:
DSDataMatrix

public class BOFDataMatrix
extends DataMatrix

"Bag of Features" Feature Matrix. This is your standard term-document matrix that does not consider word order.


Field Summary
 
Fields inherited from class edu.stanford.nlp.dbm.DataMatrix
features, matrix
 
Constructor Summary
BOFDataMatrix(GrowableMatrix m, IndexedSet f)
           
BOFDataMatrix(String filename, IndexedSet f)
           
 
Method Summary
 Array insert(Collection c)
          inserts the elements in a Collection into the DataMatrix, and returns the inserted FeatureVector
 
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

BOFDataMatrix

public BOFDataMatrix(GrowableMatrix m,
                     IndexedSet f)

BOFDataMatrix

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

insert

public Array insert(Collection c)
Description copied from class: DataMatrix
inserts the elements in a Collection into the DataMatrix, and returns the inserted FeatureVector

Specified by:
insert in class DataMatrix


Stanford NLP Group