Package org.apache.tika.parser.ner.mitie
Class MITIENERecogniser
java.lang.Object
org.apache.tika.parser.ner.mitie.MITIENERecogniser
- All Implemented Interfaces:
- NERecogniser
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 SummaryFieldsFields inherited from interface org.apache.tika.parser.ner.NERecogniserDATE, LOCATION, MISCELLANEOUS, MONEY, ORGANIZATION, PERCENT, PERSON, TIME
- 
Constructor SummaryConstructorsConstructorDescriptionMITIENERecogniser(String modelPath) Creates a NERecogniser by loading model from given path
- 
Method SummaryModifier and TypeMethodDescriptionGets set of entity types recognised by this recogniserbooleanchecks if this Named Entity recogniser is available for servicerecognises names of entities in the text
- 
Field Details- 
MODEL_PROP_NAME- See Also:
 
- 
ENTITY_TYPES
 
- 
- 
Constructor Details- 
MITIENERecogniserpublic MITIENERecogniser()
- 
MITIENERecogniserCreates a NERecogniser by loading model from given path- Parameters:
- modelPath- path to NER model file
 
 
- 
- 
Method Details- 
isAvailablepublic boolean isAvailable()Description copied from interface:NERecogniserchecks if this Named Entity recogniser is available for service- Specified by:
- isAvailablein interface- NERecogniser
- Returns:
- trueif model was available, valid and was able to initialise the classifier. returns- falsewhen this recogniser is not available for service.
 
- 
getEntityTypesGets set of entity types recognised by this recogniser- Specified by:
- getEntityTypesin interface- NERecogniser
- Returns:
- set of entity classes/types
 
- 
recogniserecognises names of entities in the text- Specified by:
- recognisein interface- NERecogniser
- Parameters:
- text- text which possibly contains names
- Returns:
- map of entity type -> set of names
 
 
-