Package opennlp.uima.normalizer
Class Normalizer
- java.lang.Object
- 
- org.apache.uima.analysis_component.AnalysisComponent_ImplBase
- 
- org.apache.uima.analysis_component.Annotator_ImplBase
- 
- org.apache.uima.analysis_component.CasAnnotator_ImplBase
- 
- opennlp.uima.normalizer.Normalizer
 
 
 
 
- 
- All Implemented Interfaces:
- org.apache.uima.analysis_component.AnalysisComponent
 
 public class Normalizer extends org.apache.uima.analysis_component.CasAnnotator_ImplBaseThe Normalizer tries the structure annotations. The structured value is than assigned to a field of the annotation.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 SummaryConstructors Constructor Description Normalizer()Initializes a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(org.apache.uima.UimaContext context)Initializes the current instance with the given context.voidprocess(org.apache.uima.cas.CAS tcas)voidtypeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)Initializes the type system.- 
Methods inherited from class org.apache.uima.analysis_component.CasAnnotator_ImplBasegetRequiredCasInterface, process
 - 
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBasegetCasInstancesRequired, hasNext, next
 
- 
 
- 
- 
- 
Constructor Detail- 
Normalizerpublic Normalizer() Initializes a new instance.Note: Use initialize(UimaContext)to initialize this instance. Not use the constructor.
 
- 
 - 
Method Detail- 
initializepublic void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationExceptionInitializes the current instance with the given context.Note: Do all initialization in this method, do not use the constructor. - Specified by:
- initializein interface- org.apache.uima.analysis_component.AnalysisComponent
- Overrides:
- initializein class- org.apache.uima.analysis_component.AnalysisComponent_ImplBase
- Parameters:
- context- context to initialize
- Throws:
- org.apache.uima.resource.ResourceInitializationException
 
 - 
typeSystemInitpublic void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) throws org.apache.uima.analysis_engine.AnalysisEngineProcessExceptionInitializes the type system.- Overrides:
- typeSystemInitin class- org.apache.uima.analysis_component.CasAnnotator_ImplBase
- Parameters:
- typeSystem- type system to initialize
- Throws:
- org.apache.uima.analysis_engine.AnalysisEngineProcessException
 
 - 
processpublic void process(org.apache.uima.cas.CAS tcas) - Specified by:
- processin class- org.apache.uima.analysis_component.CasAnnotator_ImplBase
 
 
- 
 
-