Class DictionaryNameFinder
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.namefind.AbstractNameFinder
opennlp.uima.namefind.DictionaryNameFinder
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
-
Field Summary
FieldsFields inherited from class AbstractNameFinder
context, mLogger, mNameType, mNameTypeMapping, mSentenceType, mTokenType, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Releases allocated resources.protected voiddocumentDone(org.apache.uima.cas.CAS cas) Called if the current document is completely processed.protected Span[]voidInitializes the current instance with the given context.protected voidpostProcessAnnotations(Span[] detectedNames, org.apache.uima.cas.text.AnnotationFS[] nameAnnotations) Methods inherited from class AbstractNameFinder
initialize, process, typeSystemInitMethods inherited from class org.apache.uima.analysis_component.CasAnnotator_ImplBase
getRequiredCasInterface, processMethods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase
getCasInstancesRequired, hasNext, nextMethods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
batchProcessComplete, collectionProcessComplete, getContext, getLogger, getResultSpecification, reconfigure, setResultSpecification
-
Field Details
-
mNameFinder
-
-
Constructor Details
-
DictionaryNameFinder
public DictionaryNameFinder()Initializes a new instance.Note: Use
initialize()to initialize this instance. Not use the constructor.
-
-
Method Details
-
initialize
public void initialize() 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.
- Overrides:
initializein classAbstractNameFinder- Throws:
org.apache.uima.resource.ResourceInitializationException
-
postProcessAnnotations
protected void postProcessAnnotations(Span[] detectedNames, org.apache.uima.cas.text.AnnotationFS[] nameAnnotations) - Specified by:
postProcessAnnotationsin classAbstractNameFinder
-
documentDone
protected void documentDone(org.apache.uima.cas.CAS cas) Description copied from class:AbstractNameFinderCalled if the current document is completely processed.- Specified by:
documentDonein classAbstractNameFinder
-
find
- Specified by:
findin classAbstractNameFinder
-
destroy
public void destroy()Releases allocated resources.- Specified by:
destroyin interfaceorg.apache.uima.analysis_component.AnalysisComponent- Overrides:
destroyin classorg.apache.uima.analysis_component.AnalysisComponent_ImplBase
-