Class GrobidNERecogniser
java.lang.Object
org.apache.tika.parser.ner.grobid.GrobidNERecogniser
- All Implemented Interfaces:
NERecogniser
@Deprecated(since="2026-04-30")
public class GrobidNERecogniser
extends Object
implements NERecogniser
Deprecated.
-
Field Summary
FieldsFields inherited from interface org.apache.tika.parser.ner.NERecogniser
DATE, LOCATION, MISCELLANEOUS, MONEY, ORGANIZATION, PERCENT, PERSON, TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.json.simple.JSONArrayconvertToJSONArray(org.json.simple.JSONObject obj, String key) Deprecated.Converts JSON Object to JSON Arrayorg.json.simple.JSONObjectconvertToJSONObject(String jsonString) Deprecated.Parses a JSON String and converts it to a JSON ObjectDeprecated.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.
-
-
Constructor Details
-
GrobidNERecogniser
public GrobidNERecogniser()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
-
convertToJSONArray
Deprecated.Converts JSON Object to JSON Array- Returns:
- a JSON array
-
convertToJSONObject
Deprecated.Parses a JSON String and converts it to a JSON Object- Returns:
- a JSON Object
-
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
-