Class GrobidNERecogniser
- java.lang.Object
- 
- org.apache.tika.parser.ner.grobid.GrobidNERecogniser
 
- 
- All Implemented Interfaces:
- NERecogniser
 
 public class GrobidNERecogniser extends Object implements NERecogniser 
- 
- 
Field SummaryFields Modifier and Type Field Description static Set<String>ENTITY_TYPES- 
Fields inherited from interface org.apache.tika.parser.ner.NERecogniserDATE, LOCATION, MISCELLANEOUS, MONEY, ORGANIZATION, PERCENT, PERSON, TIME
 
- 
 - 
Constructor SummaryConstructors Constructor Description GrobidNERecogniser()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.json.simple.JSONArrayconvertToJSONArray(org.json.simple.JSONObject obj, String key)Converts JSON Object to JSON Arrayorg.json.simple.JSONObjectconvertToJSONObject(String jsonString)Parses a JSON String and converts it to a JSON ObjectSet<String>getEntityTypes()Gets set of entity types recognised by this recogniserbooleanisAvailable()checks if this Named Entity recogniser is available for serviceMap<String,Set<String>>recognise(String text)recognises names of entities in the text
 
- 
- 
- 
Method Detail- 
isAvailablepublic boolean isAvailable() Description copied from interface:NERecogniserchecks if this Named Entity recogniser is available for service- Specified by:
- isAvailablein interface- NERecogniser
- Returns:
- trueif server endpoint is available. returns- falseif server endpoint is not avaliable for service.
 
 - 
getEntityTypespublic Set<String> getEntityTypes() Gets set of entity types recognised by this recogniser- Specified by:
- getEntityTypesin interface- NERecogniser
- Returns:
- set of entity classes/types
 
 - 
convertToJSONArraypublic org.json.simple.JSONArray convertToJSONArray(org.json.simple.JSONObject obj, String key)Converts JSON Object to JSON Array- Returns:
- a JSON array
 
 - 
convertToJSONObjectpublic org.json.simple.JSONObject convertToJSONObject(String jsonString) Parses a JSON String and converts it to a JSON Object- Returns:
- a JSON Object
 
 
- 
 
-