edu.stanford.nlp.dbm
Interface DataCollection

All Superinterfaces:
Collection, List
All Known Subinterfaces:
LabeledDataCollection
All Known Implementing Classes:
AbstractDataCollection

public interface DataCollection
extends List

Interface for data collections.


Method Summary
 int add(Datum d)
          Inserts a Datum into the Data Collection.
 Matrix dataMatrix()
          returns the feature matrix
 List features()
          returns an List of all the features
 String name()
          returns a String that gives the name of the data collection stored in this DBM
 String toString()
          returns a String representation of DBM
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Method Detail

dataMatrix

public Matrix dataMatrix()
returns the feature matrix


features

public List features()
returns an List of all the features


name

public String name()
returns a String that gives the name of the data collection stored in this DBM


toString

public String toString()
returns a String representation of DBM

Overrides:
toString in class Object

add

public int add(Datum d)
Inserts a Datum into the Data Collection. This assigns Datum to lowest unassigned index in FileDataCollection and returns this index. Note: this allows for duplicate objects to be stored with different indices.



Stanford NLP Group