public class TGrepWriter
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
PennTree
s to be annotated before.Modifier and Type | Field and Description |
---|---|
static String |
PARAM_COMPRESSION
Method to compress the tgrep file (only used if PARAM_WRITE_T2C is true).
|
static String |
PARAM_DROP_MALFORMED_TREES
If true, silently drops malformed Penn Trees instead of throwing an exception.
|
static String |
PARAM_TARGET_LOCATION
Path to which the output is written.
|
static String |
PARAM_WRITE_COMMENTS
Set this parameter to true if you want to add a comment to each PennTree which is written to
the output files.
|
static String |
PARAM_WRITE_T2C
Set this parameter to true if you want to encode directly into the tgrep2 binary format.
|
Constructor and Description |
---|
TGrepWriter() |
Modifier and Type | Method and Description |
---|---|
void |
collectionProcessComplete() |
void |
initialize(org.apache.uima.UimaContext aContext) |
void |
process(org.apache.uima.jcas.JCas aJCas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_TARGET_LOCATION
public static final String PARAM_WRITE_COMMENTS
documentId,beginOffset,endOffset
.
Default: true
public static final String PARAM_WRITE_T2C
true
public static final String PARAM_COMPRESSION
CompressionMethod.NONE
CompressionMethod
,
Constant Field Valuespublic static final String PARAM_DROP_MALFORMED_TREES
false
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.JCasAnnotator_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 org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.