Class MITIENERecogniser

java.lang.Object
org.apache.tika.parser.ner.mitie.MITIENERecogniser
All Implemented Interfaces:
NERecogniser

@Deprecated(since="2026-04-30") public class MITIENERecogniser extends Object implements NERecogniser
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
This class offers an implementation of NERecogniser based on trained models using state-of-the-art information extraction tools. This NER requires additional setup, due to runtime binding to MIT Information Extraction. See Tika MITIE Wiki for configuring this recogniser.
See Also:
  • Field Details

  • Constructor Details

    • MITIENERecogniser

      public MITIENERecogniser()
      Deprecated.
    • MITIENERecogniser

      public MITIENERecogniser(String modelPath)
      Deprecated.
      Creates a NERecogniser by loading model from given path
      Parameters:
      modelPath - path to NER model file
  • Method Details

    • isAvailable

      public boolean isAvailable()
      Deprecated.
      Description copied from interface: NERecogniser
      checks if this Named Entity recogniser is available for service
      Specified by:
      isAvailable in interface NERecogniser
      Returns:
      true if model was available, valid and was able to initialise the classifier. returns false when this recogniser is not available for service.
    • getEntityTypes

      public Set<String> getEntityTypes()
      Deprecated.
      Gets set of entity types recognised by this recogniser
      Specified by:
      getEntityTypes in interface NERecogniser
      Returns:
      set of entity classes/types
    • recognise

      public Map<String,Set<String>> recognise(String text)
      Deprecated.
      recognises names of entities in the text
      Specified by:
      recognise in interface NERecogniser
      Parameters:
      text - text which possibly contains names
      Returns:
      map of entity type -> set of names