Class OpenNLPNERecogniser
java.lang.Object
org.apache.tika.parser.ner.opennlp.OpenNLPNERecogniser
- All Implemented Interfaces:
NERecogniser
@Deprecated(since="2026-04-30")
public class OpenNLPNERecogniser
extends Object
implements NERecogniser
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
This implementation of
NERecogniser chains an array of
OpenNLPNameFinders for which NER models are
available in classpath.
The following models are scanned during initialization via class loader.:
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Deprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.Fields inherited from interface org.apache.tika.parser.ner.NERecogniser
DATE, LOCATION, MISCELLANEOUS, MONEY, ORGANIZATION, PERCENT, PERSON, TIME -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a default chain of Name finders using default OpenNLP recognizersOpenNLPNERecogniser(Map<String, String> models) Deprecated.Creates a chain of Named Entity recognisers -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.gets a set of entity types whose names are recognisable by thisbooleanDeprecated.checks if this Named Entity recogniser is available for serviceDeprecated.call for name recognition action from text
-
Field Details
-
MODELS_DIR
Deprecated. -
PERSON_FILE
Deprecated.- See Also:
-
LOCATION_FILE
Deprecated.- See Also:
-
ORGANIZATION_FILE
Deprecated.- See Also:
-
TIME_FILE
Deprecated.- See Also:
-
DATE_FILE
Deprecated.- See Also:
-
PERCENT_FILE
Deprecated.- See Also:
-
MONEY_FILE
Deprecated.- See Also:
-
NER_PERSON_MODEL
Deprecated. -
NER_LOCATION_MODEL
Deprecated. -
NER_ORGANIZATION_MODEL
Deprecated. -
NER_TIME_MODEL
Deprecated. -
NER_DATE_MODEL
Deprecated. -
NER_PERCENT_MODEL
Deprecated. -
NER_MONEY_MODEL
Deprecated. -
DEFAULT_MODELS
Deprecated.
-
-
Constructor Details
-
OpenNLPNERecogniser
public OpenNLPNERecogniser()Deprecated.Creates a default chain of Name finders using default OpenNLP recognizers -
OpenNLPNERecogniser
Deprecated.Creates a chain of Named Entity recognisers- Parameters:
models- map of entityType -> model path NOTE: the model path should be known to class loader.
-
-
Method Details
-
isAvailable
public boolean isAvailable()Deprecated.Description copied from interface:NERecogniserchecks if this Named Entity recogniser is available for service- Specified by:
isAvailablein interfaceNERecogniser- Returns:
- true if this recogniser is ready to recognise, false otherwise
-
getEntityTypes
Deprecated.Description copied from interface:NERecognisergets a set of entity types whose names are recognisable by this- Specified by:
getEntityTypesin interfaceNERecogniser- Returns:
- set of entity types/classes
-
recognise
Deprecated.Description copied from interface:NERecognisercall for name recognition action from text- Specified by:
recognisein interfaceNERecogniser- Parameters:
text- text with possibly contains names- Returns:
- map of entityType -> set of names
-