public class NegExCorpusReader
extends CollectionReader_ImplBase
Modifier and Type | Field and Description |
---|---|
private static int |
i |
private static java.util.List<NegExAnnotation> |
list |
(package private) static Logger |
LOGGER |
private boolean |
skipReadingValuesJustReadText |
private static TypeSystemDescription |
typeSystemDescription |
Constructor and Description |
---|
NegExCorpusReader() |
NegExCorpusReader(boolean skipReadingValuesJustReadText) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
getNext(CAS aCAS)
Does more than a typical reader - also creates an IdentifiedAnnotation
and a DocumentID annotation
|
Progress[] |
getProgress() |
boolean |
hasNext() |
static void |
main(java.lang.String[] args)
This main method is only for testing purposes.
|
private static java.util.List<NegExAnnotation> |
readAndParseAllLines(java.lang.String filename) |
private static java.lang.String[] |
readNonWhiteSpaceLines(java.lang.String filename) |
static Logger LOGGER
private boolean skipReadingValuesJustReadText
private static TypeSystemDescription typeSystemDescription
private static java.util.List<NegExAnnotation> list
private static int i
public NegExCorpusReader()
public NegExCorpusReader(boolean skipReadingValuesJustReadText)
private static java.util.List<NegExAnnotation> readAndParseAllLines(java.lang.String filename)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
private static java.lang.String[] readNonWhiteSpaceLines(java.lang.String filename)
public void getNext(CAS aCAS) throws java.io.IOException, CollectionException
java.io.IOException
CollectionException
public boolean hasNext() throws java.io.IOException, CollectionException
java.io.IOException
CollectionException
public void close() throws java.io.IOException
java.io.IOException
public Progress[] getProgress()