@PipeBitInfo(name="LVG Annotator", description="Adds cononical form of words.", dependencies={SECTION,BASE_TOKEN}) public class LvgAnnotator extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static String[] |
defaultExclusionWords |
static String[] |
defaultTreebankMap |
static String |
PARAM_CMD_CACHE_FILE |
static String |
PARAM_EXCLUSION_WORDS |
static String |
PARAM_LEMMA_CACHE_FILE_LOCATION
Value is "LemmaCacheFileLocation".
|
static String |
PARAM_LEMMA_CACHE_FREQUENCY_CUTOFF
Value is "LemmaCacheFrequencyCutoff".
|
static String |
PARAM_LEMMA_FREQ_CUTOFF |
static String |
PARAM_LVGCMDAPI_RESRC_KEY |
static String |
PARAM_POST_LEMMAS
Value is "PostLemmas".
|
static String |
PARAM_SKIP_SEGMENTS |
static String |
PARAM_USE_CMD_CACHE |
static String |
PARAM_USE_LEMMA_CACHE
Value is "UseLemmaCache".
|
static String |
PARAM_USE_SEGMENTS |
static String |
PARAM_XT_MAP |
Constructor and Description |
---|
LvgAnnotator() |
Modifier and Type | Method and Description |
---|---|
protected void |
annotateRange(org.apache.uima.jcas.JCas jcas,
String text,
int rangeBegin,
int rangeEnd)
A utility method that annotates a given range.
|
static String |
copyLvgFiles(String absolutePath)
Copy to under /tmp/ (or some other specified directory) the files needed for EventAnnotatorTest and anyone else
using UIMAfit to create a pipeline.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription() |
void |
initialize(org.apache.uima.UimaContext aContext)
Performs initialization logic.
|
void |
process(org.apache.uima.jcas.JCas jcas)
Invokes this annotator's analysis logic.
|
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String[] defaultExclusionWords
public static final String[] defaultTreebankMap
public static final String PARAM_POST_LEMMAS
public static final String PARAM_USE_LEMMA_CACHE
public static final String PARAM_LEMMA_CACHE_FILE_LOCATION
public static final String PARAM_LEMMA_CACHE_FREQUENCY_CUTOFF
public static final String PARAM_USE_SEGMENTS
public static final String PARAM_SKIP_SEGMENTS
public static final String PARAM_XT_MAP
public static final String PARAM_USE_CMD_CACHE
public static final String PARAM_CMD_CACHE_FILE
public static final String PARAM_LEMMA_FREQ_CUTOFF
public static final String PARAM_EXCLUSION_WORDS
public static final String PARAM_LVGCMDAPI_RESRC_KEY
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
BaseAnnotator.initialize(AnnotatorContext)
public void process(org.apache.uima.jcas.JCas jcas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
protected void annotateRange(org.apache.uima.jcas.JCas jcas, String text, int rangeBegin, int rangeEnd) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static String copyLvgFiles(String absolutePath)
absolutePath
- - Where to copy the LVG data/config subtree. Typically "/tmp/".public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription() throws org.apache.uima.resource.ResourceInitializationException, MalformedURLException
org.apache.uima.resource.ResourceInitializationException
MalformedURLException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.