public class BratWriter extends JCasFileWriter_ImplBase
Known issues:
JCasFileWriter_ImplBase.NamedOutputStream
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_ENABLE_TYPE_MAPPINGS
Enable type mappings.
|
static String |
PARAM_EXCLUDE_TYPES
Types that will not be written to the exported file.
|
static String |
PARAM_FILENAME_EXTENSION
Specify the suffix of output files.
|
static String |
PARAM_PALETTE
Colors to be used for the visual configuration that is generated for brat.
|
static String |
PARAM_RELATION_TYPES
Types that are relations.
|
static String |
PARAM_SHORT_ATTRIBUTE_NAMES
Whether to render attributes by their short name or by their qualified name.
|
static String |
PARAM_TEXT_ANNOTATION_TYPES
Types that are text annotations (aka entities or spans).
|
static String |
PARAM_TEXT_FILENAME_EXTENSION
Specify the suffix of text output files.
|
static String |
PARAM_TYPE_MAPPINGS
FIXME
|
static String |
PARAM_WRITE_NULL_ATTRIBUTES
Enable writing of features with null values.
|
static String |
PARAM_WRITE_RELATION_ATTRIBUTES
The brat web application can currently not handle attributes on relations, thus they are
disabled by default.
|
JAR_PREFIX, PARAM_COMPRESSION, PARAM_ESCAPE_DOCUMENT_ID, PARAM_OVERWRITE, PARAM_SINGULAR_TARGET, PARAM_STRIP_EXTENSION, PARAM_TARGET_LOCATION, PARAM_USE_DOCUMENT_ID
Constructor and Description |
---|
BratWriter() |
Modifier and Type | Method and Description |
---|---|
void |
collectionProcessComplete() |
void |
initialize(org.apache.uima.UimaContext aContext) |
void |
process(org.apache.uima.jcas.JCas aJCas) |
getCompressionMethod, getOutputStream, getOutputStream, getRelativePath, getTargetLocation, isStripExtension, isUseDocumentId
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_TEXT_FILENAME_EXTENSION
.txt
. If the suffix is not
needed, provide an empty string as value.public static final String PARAM_FILENAME_EXTENSION
.ann
. If the suffix is not
needed, provide an empty string as value.public static final String PARAM_EXCLUDE_TYPES
public static final String PARAM_TEXT_ANNOTATION_TYPES
public static final String PARAM_RELATION_TYPES
de.tudarmstadt.ukp.dkpro.core.api.syntax.type.dependency.Dependency:Governor:Dependent
.public static final String PARAM_ENABLE_TYPE_MAPPINGS
public static final String PARAM_TYPE_MAPPINGS
public static final String PARAM_WRITE_RELATION_ATTRIBUTES
public static final String PARAM_WRITE_NULL_ATTRIBUTES
public static final String PARAM_PALETTE
public static final String PARAM_SHORT_ATTRIBUTE_NAMES
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.fit.component.JCasConsumer_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.jcas.JCas aJCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public void collectionProcessComplete() throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
collectionProcessComplete
in interface org.apache.uima.analysis_component.AnalysisComponent
collectionProcessComplete
in class JCasFileWriter_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.