public class BinaryCasReader extends ResourceCollectionReaderBase
ResourceCollectionReaderBase.Resource
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_ADD_DOCUMENT_METADATA
Add DKPro Core metadata if it is not already present in the document.
|
static String |
PARAM_MERGE_TYPE_SYSTEM
Determines whether the type system from a currently read file should be merged
with the current type system
|
static String |
PARAM_OVERRIDE_DOCUMENT_METADATA
Generate new DKPro Core document metadata (i.e.
|
static String |
PARAM_TYPE_SYSTEM_LOCATION
The location from which to obtain the type system when the CAS is stored in form 0.
|
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 |
---|
BinaryCasReader() |
Modifier and Type | Method and Description |
---|---|
void |
getNext(org.apache.uima.cas.CAS aCAS) |
protected org.springframework.core.io.Resource |
getTypeSystemResource() |
protected Collection<ResourceCollectionReaderBase.Resource> |
scan(String aBase,
Collection<String> aIncludes,
Collection<String> aExcludes)
It is possible that the type system overlaps with the scan pattern for files, e.g.
|
void |
typeSystemInit(org.apache.uima.cas.TypeSystem aTypeSystem) |
getBase, getBase, getDefaultExcludes, getLanguage, getProgress, getResolver, getResourceIterator, getResources, getSourceLocation, hasNext, initCas, initCas, initialize, isSingleLocation, locationToUrl, nextFile
close, getLogger, initialize
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getCasManager, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final String PARAM_TYPE_SYSTEM_LOCATION
public static final String PARAM_MERGE_TYPE_SYSTEM
public static final String PARAM_ADD_DOCUMENT_METADATA
public static final String PARAM_OVERRIDE_DOCUMENT_METADATA
public void getNext(org.apache.uima.cas.CAS aCAS) throws IOException, org.apache.uima.collection.CollectionException
IOException
org.apache.uima.collection.CollectionException
public void typeSystemInit(org.apache.uima.cas.TypeSystem aTypeSystem) throws org.apache.uima.resource.ResourceInitializationException
typeSystemInit
in interface org.apache.uima.collection.CollectionReader
typeSystemInit
in class org.apache.uima.collection.CollectionReader_ImplBase
org.apache.uima.resource.ResourceInitializationException
protected Collection<ResourceCollectionReaderBase.Resource> scan(String aBase, Collection<String> aIncludes, Collection<String> aExcludes) throws IOException
.ser
and the resources also end in .ser
. If this is
the case, we filter the type system file from the resource files during scanning.scan
in class ResourceCollectionReaderBase
IOException
protected org.springframework.core.io.Resource getTypeSystemResource() throws MalformedURLException
MalformedURLException
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.