de.unihd.dbs.uima.reader.aceternreader
public class ACETernReader extends org.apache.uima.collection.CollectionReader_ImplBase
Modifier and Type | Field and Description |
---|---|
java.lang.Boolean |
annotateDCT |
java.lang.Integer |
numberOfDocuments
Needed information to create cas objects for all "documents"
|
static java.lang.String |
PARAM_DCT |
static java.lang.String |
PARAM_INPUTDIR
Parameter information
|
Constructor and Description |
---|
ACETernReader() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static java.lang.Iterable<java.util.regex.MatchResult> |
findMatches(java.util.regex.Pattern pattern,
java.lang.CharSequence s)
Find all the matches of a pattern in a charSequence and return the
results as list.
|
void |
getNext(org.apache.uima.cas.CAS aCAS) |
int |
getNumberOfDocuments()
Gets the total number of documents that will be returned by this collection reader.
|
org.apache.uima.util.Progress[] |
getProgress() |
boolean |
hasNext() |
void |
initialize() |
java.lang.String |
normDay(java.lang.String day) |
java.lang.String |
normMonth(java.lang.String month) |
void |
setDCT(java.lang.String xml,
org.apache.uima.jcas.JCas jcas,
java.lang.String filename) |
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public java.lang.Integer numberOfDocuments
public static final java.lang.String PARAM_INPUTDIR
public static final java.lang.String PARAM_DCT
public java.lang.Boolean annotateDCT
public void initialize() throws org.apache.uima.resource.ResourceInitializationException
initialize
in class org.apache.uima.collection.CollectionReader_ImplBase
org.apache.uima.resource.ResourceInitializationException
CollectionReader_ImplBase.initialize()
public boolean hasNext()
BaseCollectionReader.hasNext()
public void getNext(org.apache.uima.cas.CAS aCAS) throws java.io.IOException, org.apache.uima.collection.CollectionException
java.io.IOException
org.apache.uima.collection.CollectionException
CollectionReader.getNext(org.apache.uima.cas.CAS)
public void setDCT(java.lang.String xml, org.apache.uima.jcas.JCas jcas, java.lang.String filename)
public java.lang.String normDay(java.lang.String day)
public java.lang.String normMonth(java.lang.String month)
public void close() throws java.io.IOException
java.io.IOException
BaseCollectionReader.close()
public org.apache.uima.util.Progress[] getProgress()
BaseCollectionReader.getProgress()
public int getNumberOfDocuments()
public static java.lang.Iterable<java.util.regex.MatchResult> findMatches(java.util.regex.Pattern pattern, java.lang.CharSequence s)
pattern
- s
-