edu.washington.cs.knowitall.nlp
Class ChunkedDocument

java.lang.Object
  extended by edu.washington.cs.knowitall.nlp.ChunkedDocument
All Implemented Interfaces:
Iterable<ChunkedSentence>

public class ChunkedDocument
extends Object
implements Iterable<ChunkedSentence>

Represents an ordered collection of ChunkedSentence objects with an identifier string.

Author:
afader

Constructor Summary
ChunkedDocument(String id, Iterable<ChunkedSentence> sents)
          Constructs a new ChunkedDocument with the given identifier and sentences.
 
Method Summary
 String getId()
           
 List<ChunkedSentence> getSentences()
           
 Iterator<ChunkedSentence> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkedDocument

public ChunkedDocument(String id,
                       Iterable<ChunkedSentence> sents)
Constructs a new ChunkedDocument with the given identifier and sentences.

Parameters:
id -
sents -
Method Detail

iterator

public Iterator<ChunkedSentence> iterator()
Specified by:
iterator in interface Iterable<ChunkedSentence>

getSentences

public List<ChunkedSentence> getSentences()
Returns:
an immutable view of the sentences in this document

getId

public String getId()
Returns:
the id of this document


Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.