public class Normalizer
extends org.apache.uima.analysis_component.CasAnnotator_ImplBase
The process depends on the
string Tokens must be (fuzzy) mapped to categories eg. a month, a day or a year (use dictionary) integer, float tokens must be parsed eg. for percentage or period boolean tokens must be parsed eg is there any ???
restricted set of outcomes throw error if not matched or silently fail unrestricted set of outcomes
Constructor and Description |
---|
Normalizer()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext context)
Initializes the current instance with the given context.
|
void |
process(org.apache.uima.cas.CAS tcas) |
void |
typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
Initializes the type system.
|
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public Normalizer()
Note: Use initialize(UimaContext)
to initialize this instance. Not
use the constructor.
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
Note: Do all initialization in this method, do not use the constructor.
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 typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
typeSystemInit
in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public void process(org.apache.uima.cas.CAS tcas)
process
in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
Copyright © 2017 The Apache Software Foundation. All rights reserved.