public class NegraExportReader
extends org.apache.uima.fit.component.JCasCollectionReader_ImplBase
Modifier and Type | Class and Description |
---|---|
static class |
NegraExportReader.DocumentUnit |
Modifier and Type | Field and Description |
---|---|
protected String |
mappingPosLocation |
static String |
PARAM_COLLECTION_ID
The collection ID to the written to the document meta data.
|
static String |
PARAM_DOCUMENT_UNIT
What indicates if a new CAS should be started.
|
static String |
PARAM_GENERATE_NEW_IDS
If true, the unit IDs are used only to detect if a new document (CAS) needs to be created,
but for the purpose of setting the document ID, a new ID is generated.
|
static String |
PARAM_LANGUAGE
The language.
|
static String |
PARAM_POS_MAPPING_LOCATION
Location of the mapping file for part-of-speech tags to UIMA types.
|
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_LEMMA
Write lemma information.
|
static String |
PARAM_READ_PENN_TREE
Write Penn Treebank bracketed structure information.
|
static String |
PARAM_READ_POS
Write part-of-speech information.
|
static String |
PARAM_SOURCE_ENCODING
Character encoding of the input data.
|
static String |
PARAM_SOURCE_LOCATION
Location from which the input is read.
|
protected String |
posTagset |
Constructor and Description |
---|
NegraExportReader() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
getNext(org.apache.uima.jcas.JCas aJCas) |
org.apache.uima.util.Progress[] |
getProgress() |
boolean |
hasNext() |
void |
initialize(org.apache.uima.UimaContext aContext) |
getLogger, getNext, 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_LOCATION
public static final String PARAM_LANGUAGE
public static final String PARAM_SOURCE_ENCODING
public static final String PARAM_READ_POS
true
public static final String PARAM_READ_LEMMA
true
public static final String PARAM_READ_PENN_TREE
false
public static final String PARAM_POS_MAPPING_LOCATION
protected String mappingPosLocation
public static final String PARAM_POS_TAG_SET
protected String posTagset
public static final String PARAM_COLLECTION_ID
public static final String PARAM_GENERATE_NEW_IDS
public static final String PARAM_DOCUMENT_UNIT
ORIGIN_NAME
, a new CAS is generated whenever the origin name
of the current sentence differs from the origin name of the last sentence. (Default:
ORIGIN_NAME)public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationException
initialize
in class org.apache.uima.fit.component.JCasCollectionReader_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void getNext(org.apache.uima.jcas.JCas aJCas) throws IOException
getNext
in class org.apache.uima.fit.component.JCasCollectionReader_ImplBase
IOException
public boolean hasNext() throws IOException, org.apache.uima.collection.CollectionException
IOException
org.apache.uima.collection.CollectionException
public org.apache.uima.util.Progress[] getProgress()
public void close() throws IOException
close
in interface org.apache.uima.collection.base_cpm.BaseCollectionReader
close
in class org.apache.uima.fit.component.JCasCollectionReader_ImplBase
IOException
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.