public class VariableMentionDisambiguator
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_DISAMBIGUATE_ALL_MENTIONS
If set to
false, only correct="Yes" mentions are disambiguated, otherwise
all mentions are disambiguated. |
static String |
PARAM_LANGUAGE
Use this language instead of the document language to resolve the model.
|
static String |
PARAM_MAX_MENTIONS
Maximum number of variables linked.
|
static String |
PARAM_MODEL_LOCATION
Location of the similarity model.
|
static String |
PARAM_SCORE_THRESHOLD
Minimum similarity score to a variable require to count as a match (0-5).
|
static String |
PARAM_VARIABLE_FILE_LOCATION
This parameter accepts a path to an XML file containing the specification of the variables.
|
static String |
PARAM_VARIABLE_SPECIFICATION
This parameter accepts an XML string containing the specification of the variables.
|
static String |
PARAM_VARIANT
Override the default variant used to locate the model.
|
static String |
PARAM_WRITE_LOG
Whether to write a detailed log of the results.
|
| Constructor and Description |
|---|
VariableMentionDisambiguator() |
| Modifier and Type | Method and Description |
|---|---|
void |
collectionProcessComplete() |
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas aJCas) |
getRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic static final String PARAM_LANGUAGE
public static final String PARAM_VARIANT
public static final String PARAM_MODEL_LOCATION
public static final String PARAM_VARIABLE_SPECIFICATION
public static final String PARAM_VARIABLE_FILE_LOCATION
public static final String PARAM_DISAMBIGUATE_ALL_MENTIONS
false, only correct="Yes" mentions are disambiguated, otherwise
all mentions are disambiguated.public static final String PARAM_WRITE_LOG
public static final String PARAM_SCORE_THRESHOLD
public static final String PARAM_MAX_MENTIONS
public void initialize(org.apache.uima.UimaContext context)
throws org.apache.uima.resource.ResourceInitializationException
initialize in interface org.apache.uima.analysis_component.AnalysisComponentinitialize in class org.apache.uima.fit.component.JCasAnnotator_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void process(org.apache.uima.jcas.JCas aJCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionpublic void collectionProcessComplete()
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
collectionProcessComplete in interface org.apache.uima.analysis_component.AnalysisComponentcollectionProcessComplete in class org.apache.uima.analysis_component.AnalysisComponent_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionCopyright © 2016–2018 OpenMinTeD. All rights reserved.