edu.stanford.nlp.dbm
Class RestrictedDataMatrix

java.lang.Object
  |
  +--edu.stanford.nlp.dbm.DataMatrix
        |
        +--edu.stanford.nlp.dbm.RestrictedDataMatrix
All Implemented Interfaces:
MatrixWrapper

public class RestrictedDataMatrix
extends DataMatrix

"Restricted Bag of Features" Feature Matrix. This only uses as features the features that are given in the IndexedSet f in the constructor.


Field Summary
 
Fields inherited from class edu.stanford.nlp.dbm.DataMatrix
features, matrix
 
Constructor Summary
RestrictedDataMatrix(GrowableMatrix m, IndexedSet f)
           
RestrictedDataMatrix(String filename, IndexedSet f)
           
 
Method Summary
 Array insert(Collection coll)
          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

RestrictedDataMatrix

public RestrictedDataMatrix(GrowableMatrix m,
                            IndexedSet f)

RestrictedDataMatrix

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

insert

public Array insert(Collection coll)
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