Package org.apache.tika.parser.ner.nltk
Class NLTKNERecogniser
java.lang.Object
org.apache.tika.parser.ner.nltk.NLTKNERecogniser
- All Implemented Interfaces:
NERecogniser
@Deprecated(since="2026-04-30")
public class NLTKNERecogniser
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
ne_chunk() module of NLTK. This NER requires additional setup,
due to Http requests to an endpoint server that runs NLTK.
See -
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.some common entities identified by NLTKFields inherited from interface org.apache.tika.parser.ner.NERecogniser
DATE, LOCATION, MISCELLANEOUS, MONEY, ORGANIZATION, PERCENT, PERSON, TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets set of entity types recognised by this recogniserbooleanDeprecated.checks if this Named Entity recogniser is available for serviceDeprecated.recognises names of entities in the text
-
Field Details
-
ENTITY_TYPES
Deprecated.some common entities identified by NLTK
-
-
Constructor Details
-
NLTKNERecogniser
public NLTKNERecogniser()Deprecated.
-
-
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:
trueif server endpoint is available. returnsfalseif server endpoint is not avaliable for service.
-
getEntityTypes
Deprecated.Gets set of entity types recognised by this recogniser- Specified by:
getEntityTypesin interfaceNERecogniser- Returns:
- set of entity classes/types
-
recognise
Deprecated.recognises names of entities in the text- Specified by:
recognisein interfaceNERecogniser- Parameters:
text- text which possibly contains names- Returns:
- map of entity type -> set of names
-