public class ChunkedSentenceIterator extends com.google.common.collect.AbstractIterator<ChunkedSentence>
ChunkedSentence
objects.| Constructor and Description |
|---|
ChunkedSentenceIterator(Iterator<String> sentIter,
SentenceChunker chunker) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(com.google.common.base.Predicate<ChunkedSentence> filter)
If a chunked sentence is filtered, it will not be returned.
|
protected ChunkedSentence |
computeNext() |
long |
getLastComputeTime() |
public ChunkedSentenceIterator(Iterator<String> sentIter, SentenceChunker chunker)
sentIter - an iterator over String sentences.chunker - public long getLastComputeTime()
public void addFilter(com.google.common.base.Predicate<ChunkedSentence> filter)
filter - A predicate to test chunked sentences against.protected ChunkedSentence computeNext()
computeNext in class com.google.common.collect.AbstractIterator<ChunkedSentence>Copyright © 2010-2013 University of Washington CSE. All Rights Reserved.