edu.washington.cs.knowitall.nlp
Class ChunkedDocument
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChunkedDocument
public ChunkedDocument(String id,
Iterable<ChunkedSentence> sents)
- Constructs a new ChunkedDocument with the given identifier and sentences.
- Parameters:
id - sents -
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.