public class SenseDisambiguatorAnnotator
extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Constructor and Description |
---|
SenseDisambiguatorAnnotator() |
Modifier and Type | Method and Description |
---|---|
protected void |
disambiguate(org.apache.uima.jcas.JCas jcas,
List<IdentifiedAnnotation> listNE) |
protected String |
getConceptId(org.apache.uima.cas.FeatureStructure oc)
get the concept id for the specified concept.
|
void |
initialize(org.apache.uima.UimaContext aContext) |
void |
process(org.apache.uima.jcas.JCas jcas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
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.analysis_component.AnalysisComponent_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
protected String getConceptId(org.apache.uima.cas.FeatureStructure oc) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
oc
- IllegalAccessException
ReflectiveOperationException
NoSuchMethodException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
protected void disambiguate(org.apache.uima.jcas.JCas jcas, List<IdentifiedAnnotation> listNE) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
jcas
- listNE
- list of named entities to disambiguateorg.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.