public class ReplacementFileNormalizer extends Normalizer_ImplBase
Modifier and Type | Class and Description |
---|---|
static class |
ReplacementFileNormalizer.SrcSurroundings |
static class |
ReplacementFileNormalizer.TargetSurroundings |
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_MODEL_LOCATION
Location of a file which contains all replacing characters
|
static String |
PARAM_SRC_SURROUNDINGS |
static String |
PARAM_TARGET_SURROUNDINGS |
protected Map<String,String> |
replacementMap |
Constructor and Description |
---|
ReplacementFileNormalizer() |
Modifier and Type | Method and Description |
---|---|
protected Map<Integer,List<SofaChangeAnnotation>> |
createSofaChangesMap(org.apache.uima.jcas.JCas jcas) |
protected Map<Integer,Boolean> |
createTokenReplaceMap(org.apache.uima.jcas.JCas jcas,
AlignedString as) |
void |
initialize(org.apache.uima.UimaContext context) |
process
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_MODEL_LOCATION
public static final String PARAM_SRC_SURROUNDINGS
public static final String PARAM_TARGET_SURROUNDINGS
public void initialize(org.apache.uima.UimaContext context) 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
protected Map<Integer,List<SofaChangeAnnotation>> createSofaChangesMap(org.apache.uima.jcas.JCas jcas)
createSofaChangesMap
in class Normalizer_ImplBase
protected Map<Integer,Boolean> createTokenReplaceMap(org.apache.uima.jcas.JCas jcas, AlignedString as) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
createTokenReplaceMap
in class Normalizer_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2011–2015. All rights reserved.