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

public class DictionaryNameFinder extends AbstractNameFinder
  • Field Details

  • 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.ResourceInitializationException
      Initializes the current instance with the given context.

      Note: Do all initialization in this method, do not use the constructor.

      Overrides:
      initialize in class AbstractNameFinder
      Throws:
      org.apache.uima.resource.ResourceInitializationException
    • postProcessAnnotations

      protected void postProcessAnnotations(Span[] detectedNames, org.apache.uima.cas.text.AnnotationFS[] nameAnnotations)
      Specified by:
      postProcessAnnotations in class AbstractNameFinder
    • documentDone

      protected void documentDone(org.apache.uima.cas.CAS cas)
      Description copied from class: AbstractNameFinder
      Called if the current document is completely processed.
      Specified by:
      documentDone in class AbstractNameFinder
    • find

      protected Span[] find(org.apache.uima.cas.CAS cas, String[] tokens)
      Specified by:
      find in class AbstractNameFinder
    • destroy

      public void destroy()
      Releases allocated resources.
      Specified by:
      destroy in interface org.apache.uima.analysis_component.AnalysisComponent
      Overrides:
      destroy in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase