@Deprecated public class ReplacementFileNormalizer extends Normalizer_ImplBase
Modifier and Type | Class and Description |
---|---|
static class |
ReplacementFileNormalizer.SrcSurroundings
Deprecated.
|
static class |
ReplacementFileNormalizer.TargetSurroundings
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected String |
modelEncoding
Deprecated.
|
static String |
PARAM_MODEL_ENCODING
Deprecated.
The character encoding used by the model.
|
static String |
PARAM_MODEL_LOCATION
Deprecated.
Location of a file which contains all replacing characters
|
static String |
PARAM_SRC_SURROUNDINGS
Deprecated.
|
static String |
PARAM_TARGET_SURROUNDINGS
Deprecated.
|
protected Map<String,String> |
replacementMap
Deprecated.
|
Constructor and Description |
---|
ReplacementFileNormalizer()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Map<Integer,List<SofaChangeAnnotation>> |
createSofaChangesMap(org.apache.uima.jcas.JCas jcas)
Deprecated.
A map, where a token position maps to a list of SofaChangeAnnotations that should be applied
for that token
|
protected Map<Integer,Boolean> |
createTokenReplaceMap(org.apache.uima.jcas.JCas jcas,
AlignedString as)
Deprecated.
A map showing which token should be kept and which should be replaced.
|
void |
initialize(org.apache.uima.UimaContext context)
Deprecated.
|
process
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_MODEL_LOCATION
public static final String PARAM_MODEL_ENCODING
protected String modelEncoding
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)
Normalizer_ImplBase
createSofaChangesMap
in class Normalizer_ImplBase
jcas
- a CAS.protected Map<Integer,Boolean> createTokenReplaceMap(org.apache.uima.jcas.JCas jcas, AlignedString as) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Normalizer_ImplBase
createTokenReplaceMap
in class Normalizer_ImplBase
jcas
- a CAS.as
- an aligned string.org.apache.uima.analysis_engine.AnalysisEngineProcessException
- if there is an error.Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.