Package opennlp.uima.normalizer
Klasse 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
- Alle implementierten Schnittstellen:
org.apache.uima.analysis_component.AnalysisComponent
public class Normalizer
extends org.apache.uima.analysis_component.CasAnnotator_ImplBase
The 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 an error if not matched or silently fail unrestricted set of outcomes.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidinitialize(org.apache.uima.UimaContext context) Initializes the current instance with the givencontext.voidprocess(org.apache.uima.cas.CAS tcas) voidtypeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) Initializes the type system.Von Klasse geerbte Methoden org.apache.uima.analysis_component.CasAnnotator_ImplBase
getRequiredCasInterface, processVon Klasse geerbte Methoden org.apache.uima.analysis_component.Annotator_ImplBase
getCasInstancesRequired, hasNext, nextVon Klasse geerbte Methoden org.apache.uima.analysis_component.AnalysisComponent_ImplBase
batchProcessComplete, collectionProcessComplete, destroy, reconfigure, setResultSpecification
-
Methodendetails
-
initialize
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException Initializes the current instance with the givencontext.- Angegeben von:
initializein Schnittstelleorg.apache.uima.analysis_component.AnalysisComponent- Setzt außer Kraft:
initializein Klasseorg.apache.uima.analysis_component.AnalysisComponent_ImplBase- Parameter:
context- context to initialize- Löst aus:
org.apache.uima.resource.ResourceInitializationException- Thrown if errors occurred during initialization of resources.
-
typeSystemInit
public void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException Initializes the type system.- Setzt außer Kraft:
typeSystemInitin Klasseorg.apache.uima.analysis_component.CasAnnotator_ImplBase- Parameter:
typeSystem- type system to initialize- Löst aus:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
-
process
public void process(org.apache.uima.cas.CAS tcas) - Angegeben von:
processin Klasseorg.apache.uima.analysis_component.CasAnnotator_ImplBase
-