public class Reuters21578SgmlReader extends JCasResourceCollectionReader_ImplBase
Set the directory that contains the SGML files with ResourceCollectionReaderBase.PARAM_SOURCE_LOCATION
.
ResourceCollectionReaderBase.Resource
EXCLUDE_PREFIX, INCLUDE_PREFIX, JAR_PREFIX, KEY_RESOURCE_RESOLVER, PARAM_INCLUDE_HIDDEN, PARAM_LANGUAGE, PARAM_LOG_FREQ, PARAM_PATH, PARAM_PATTERNS, PARAM_SOURCE_LOCATION, PARAM_USE_DEFAULT_EXCLUDES
Constructor and Description |
---|
Reuters21578SgmlReader() |
Modifier and Type | Method and Description |
---|---|
void |
getNext(org.apache.uima.jcas.JCas jCas)
Subclasses implement this method rather than
JCasResourceCollectionReader_ImplBase.getNext(CAS) |
org.apache.uima.util.Progress[] |
getProgress() |
boolean |
hasNext() |
void |
initialize(org.apache.uima.UimaContext context) |
getNext, initCas, initCas
getBase, getBase, getDefaultExcludes, getLanguage, getResolver, getResourceIterator, getResources, getSourceLocation, initCas, initCas, isSingleLocation, locationToUrl, nextFile, scan
close, getLogger, initialize
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getCasManager, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
initialize
in class ResourceCollectionReaderBase
org.apache.uima.resource.ResourceInitializationException
public void getNext(org.apache.uima.jcas.JCas jCas) throws IOException, org.apache.uima.collection.CollectionException
JCasResourceCollectionReader_ImplBase
JCasResourceCollectionReader_ImplBase.getNext(CAS)
getNext
in class JCasResourceCollectionReader_ImplBase
jCas
- the JCas.IOException
- if an i/o error occurs reading the data.org.apache.uima.collection.CollectionException
- if another type of error occurs.public boolean hasNext() throws IOException, org.apache.uima.collection.CollectionException
hasNext
in interface org.apache.uima.collection.base_cpm.BaseCollectionReader
hasNext
in class ResourceCollectionReaderBase
IOException
org.apache.uima.collection.CollectionException
public org.apache.uima.util.Progress[] getProgress()
getProgress
in interface org.apache.uima.collection.base_cpm.BaseCollectionReader
getProgress
in class ResourceCollectionReaderBase
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.