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