public class DictionaryAnnotator
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
NGram
, but can be changed.
The component requires that Token
s and Sentence
es are annotated in the CAS.
The format of the phrase file is one phrase per line, tokens are separated by space:
this is a phrase another phrase
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_ANNOTATION_TYPE
The annotation to create on matching phases.
|
static String |
PARAM_MODEL_ENCODING
The character encoding used by the model.
|
static String |
PARAM_MODEL_LOCATION
The file must contain one phrase per line - phrases will be split at " "
|
static String |
PARAM_VALUE
The value to set the feature configured in
PARAM_VALUE_FEATURE to. |
static String |
PARAM_VALUE_FEATURE
Set this feature on the created annotations.
|
Constructor and Description |
---|
DictionaryAnnotator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext aContext) |
void |
process(org.apache.uima.jcas.JCas jcas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_MODEL_LOCATION
public static final String PARAM_MODEL_ENCODING
public static final String PARAM_ANNOTATION_TYPE
NGram
.public static final String PARAM_VALUE_FEATURE
public static final String PARAM_VALUE
PARAM_VALUE_FEATURE
to.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 jcas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.