public class SESentenceFeatureAnnotator
extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Constructor and Description |
---|
SESentenceFeatureAnnotator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext annotCtx) |
void |
process(org.apache.uima.jcas.JCas jcas) |
Map |
readMetaKeywordsFromFile(String fileName,
List key)
Return LinkedHashMap (key:metakeyword, value:set of actual keywords
belonging to metakeyword) and assign key in the insertion order (cf)
LinkedHashMap.keySet() keeps the order)
input file format: metakeyword|keyword|keyword...
|
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public void initialize(org.apache.uima.UimaContext annotCtx) 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
public Map readMetaKeywordsFromFile(String fileName, List key) throws IOException
IOException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.