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.
Method Summary |
Array |
insert(Collection coll)
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 |
RestrictedDataMatrix
public RestrictedDataMatrix(GrowableMatrix m,
IndexedSet f)
RestrictedDataMatrix
public RestrictedDataMatrix(String filename,
IndexedSet f)
throws IOException,
FileNotFoundException
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