public class BncReader extends XmlTextReader
Modifier and Type | Class and Description |
---|---|
class |
BncReader.BncHandler |
XmlTextReader.Handler, XmlTextReader.TextExtractor
ResourceCollectionReaderBase.Resource
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_POS_MAPPING_LOCATION
Location of the mapping file for part-of-speech tags to UIMA types.
|
static String |
PARAM_POS_TAGSET
Use this part-of-speech tag set to use to resolve the tag set mapping instead of using the
tag set defined as part of the model meta data.
|
protected String |
posMappingLocation |
protected String |
posTagset |
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 |
---|
BncReader() |
Modifier and Type | Method and Description |
---|---|
protected void |
initCas(org.apache.uima.cas.CAS aCas,
ResourceCollectionReaderBase.Resource aResource,
String aQualifier)
Initialize the
DocumentMetaData . |
void |
initialize(org.apache.uima.UimaContext aContext) |
protected XmlTextReader.Handler |
newSaxHandler() |
getNext
getBase, getBase, getDefaultExcludes, getLanguage, getProgress, getResolver, getResourceIterator, getResources, getSourceLocation, hasNext, 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 static final String PARAM_POS_MAPPING_LOCATION
protected String posMappingLocation
public static final String PARAM_POS_TAGSET
protected String posTagset
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationException
initialize
in class ResourceCollectionReaderBase
org.apache.uima.resource.ResourceInitializationException
protected void initCas(org.apache.uima.cas.CAS aCas, ResourceCollectionReaderBase.Resource aResource, String aQualifier) throws RuntimeException
ResourceCollectionReaderBase
DocumentMetaData
. This must be called before setting the document
text, otherwise the end feature of this annotation will not be set correctly.initCas
in class ResourceCollectionReaderBase
aCas
- the CAS.aResource
- the resource from which the CAS is initialized.aQualifier
- a qualifier if multiple CASes are generated from the same file.RuntimeException
protected XmlTextReader.Handler newSaxHandler()
newSaxHandler
in class XmlTextReader
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.