Class OpenNLPNameFinder
java.lang.Object
org.apache.tika.parser.ner.opennlp.OpenNLPNameFinder
- All Implemented Interfaces:
NERecogniser
@Deprecated(since="2026-04-30")
public class OpenNLPNameFinder
extends Object
implements NERecogniser
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
An implementation of
NERecogniser that finds names in text using Open NLP Model.
This implementation works with only one entity type. For chain this name finder instances,
see OpenNLPNERecogniser-
Field Summary
Fields inherited from interface org.apache.tika.parser.ner.NERecogniser
DATE, LOCATION, MISCELLANEOUS, MONEY, ORGANIZATION, PERCENT, PERSON, TIME -
Constructor Summary
ConstructorsConstructorDescriptionOpenNLPNameFinder(String nameType, String nerModelPath) Deprecated.Creates OpenNLP name finder -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.finds names from given array of tokensDeprecated.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 textstatic String[]Deprecated.
-
Constructor Details
-
OpenNLPNameFinder
Deprecated.Creates OpenNLP name finder- Parameters:
nameType- the entity type recognised by the given NER modelnerModelPath- path to ner model
-
-
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
-
tokenize
Deprecated. -
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
-
findNames
Deprecated.finds names from given array of tokens- Parameters:
tokens- the tokens array- Returns:
- map of EntityType -> set of entity names
-