public class Conll2006Reader extends JCasResourceCollectionReader_ImplBase
Reads a file in the CoNLL-2006 format (aka CoNLL-X).
ResourceCollectionReaderBase.Resource
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_POS_MAPPING_LOCATION
Load the part-of-speech tag to UIMA type mapping from this location instead of locating
the mapping automatically.
|
static String |
PARAM_POS_TAG_SET
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.
|
static String |
PARAM_READ_CPOS |
static String |
PARAM_READ_DEPENDENCY |
static String |
PARAM_READ_LEMMA |
static String |
PARAM_READ_MORPH |
static String |
PARAM_READ_POS |
static String |
PARAM_SOURCE_ENCODING |
static String |
PARAM_USE_CPOS_AS_POS
Enable to use CPOS (column 4) as the part-of-speech tag.
|
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 |
---|
Conll2006Reader() |
Modifier and Type | Method and Description |
---|---|
void |
convert(org.apache.uima.jcas.JCas aJCas,
BufferedReader aReader) |
void |
getNext(org.apache.uima.jcas.JCas aJCas)
Subclasses implement this method rather than
JCasResourceCollectionReader_ImplBase.getNext(CAS) |
void |
initialize(org.apache.uima.UimaContext aContext) |
getNext, initCas, initCas
getBase, getBase, getDefaultExcludes, getLanguage, getProgress, getResolver, getResourceIterator, getResources, getSourceLocation, hasNext, 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 static final String PARAM_SOURCE_ENCODING
public static final String PARAM_READ_POS
public static final String PARAM_READ_CPOS
public static final String PARAM_USE_CPOS_AS_POS
public static final String PARAM_POS_TAG_SET
protected String posTagset
public static final String PARAM_POS_MAPPING_LOCATION
protected String posMappingLocation
public static final String PARAM_READ_MORPH
public static final String PARAM_READ_LEMMA
public static final String PARAM_READ_DEPENDENCY
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationException
initialize
in class ResourceCollectionReaderBase
org.apache.uima.resource.ResourceInitializationException
public void getNext(org.apache.uima.jcas.JCas aJCas) throws IOException, org.apache.uima.collection.CollectionException
JCasResourceCollectionReader_ImplBase
JCasResourceCollectionReader_ImplBase.getNext(CAS)
getNext
in class JCasResourceCollectionReader_ImplBase
aJCas
- the JCas.IOException
- if an i/o error occurs reading the data.org.apache.uima.collection.CollectionException
- if another type of error occurs.public void convert(org.apache.uima.jcas.JCas aJCas, BufferedReader aReader) throws IOException
IOException
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.