edu.stanford.nlp.dbm
Class SentenceDocument

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byedu.stanford.nlp.dbm.SentenceDocument
All Implemented Interfaces:
Cloneable, Collection, Datum, Document, Featurizable, Labeled, List, RandomAccess, Serializable

public class SentenceDocument
extends ArrayList
implements Document

Basically, this is a list of Sentences.

See Also:
Serialized Form

Field Summary
protected  String title
          title of this document (never null).
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SentenceDocument()
           
 
Method Summary
 Collection asFeatures()
          Returns this (the features are the list of words).
 Document blankDocument()
          Returns a new empty Document with the same meta-data (title, labels, etc) as this Document.
 Object label()
          Returns the primary label for this Object, or null if none have been set.
 Collection labels()
          Returns the complete list of labels for this Object, which may be empty.
 void setTitle(String title)
           
 String title()
          Returns title of document, or "" if the document has no title.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Field Detail

title

protected String title
title of this document (never null).

Constructor Detail

SentenceDocument

public SentenceDocument()
Method Detail

label

public Object label()
Description copied from interface: Labeled
Returns the primary label for this Object, or null if none have been set.

Specified by:
label in interface Labeled

labels

public Collection labels()
Description copied from interface: Labeled
Returns the complete list of labels for this Object, which may be empty.

Specified by:
labels in interface Labeled

asFeatures

public Collection asFeatures()
Returns this (the features are the list of words).

Specified by:
asFeatures in interface Featurizable

title

public String title()
Description copied from interface: Document
Returns title of document, or "" if the document has no title. Implementations should never return null.

Specified by:
title in interface Document

setTitle

public void setTitle(String title)

blankDocument

public Document blankDocument()
Description copied from interface: Document
Returns a new empty Document with the same meta-data (title, labels, etc) as this Document. Subclasses that store extra state should provide custom implementations of this method. This method is primarily used by the processing API, so the in document can be preserved and the out document can maintain the meta-data of the in document.

Specified by:
blankDocument in interface Document


Stanford NLP Group