public abstract class TextAnnotationReader extends Object implements Iterable<TextAnnotation>, IResetableIterator<TextAnnotation>
Modifier and Type | Field and Description |
---|---|
protected String |
corpusName |
protected int |
currentAnnotationId |
Constructor and Description |
---|
TextAnnotationReader(String corpusName) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
initializeReader() |
Iterator<TextAnnotation> |
iterator() |
protected abstract TextAnnotation |
makeTextAnnotation() |
TextAnnotation |
next() |
void |
remove() |
void |
reset() |
protected final String corpusName
protected int currentAnnotationId
public TextAnnotationReader(String corpusName)
protected abstract void initializeReader()
public void reset()
reset
in interface IResetableIterator<TextAnnotation>
public Iterator<TextAnnotation> iterator()
iterator
in interface Iterable<TextAnnotation>
public TextAnnotation next()
next
in interface Iterator<TextAnnotation>
protected abstract TextAnnotation makeTextAnnotation() throws Exception
Exception
public void remove()
remove
in interface Iterator<TextAnnotation>
Copyright © 2015. All rights reserved.