public class MITIENERecogniser extends Object implements NERecogniser
NERecogniser
based on
trained models using state-of-the-art information extraction tools. This NER requires additional setup,
due to runtime binding to MIT Information Extraction.
See
Tika MITIE Wiki for configuring this recogniser.NERecogniser
Modifier and Type | Field and Description |
---|---|
static Set<String> |
ENTITY_TYPES |
static String |
MODEL_PROP_NAME |
DATE, LOCATION, MISCELLANEOUS, MONEY, ORGANIZATION, PERCENT, PERSON, TIME
Constructor and Description |
---|
MITIENERecogniser() |
MITIENERecogniser(String modelPath)
Creates a NERecogniser by loading model from given path
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getEntityTypes()
Gets set of entity types recognised by this recogniser
|
boolean |
isAvailable()
checks if this Named Entity recogniser is available for service
|
Map<String,Set<String>> |
recognise(String text)
recognises names of entities in the text
|
public static final String MODEL_PROP_NAME
public MITIENERecogniser()
public MITIENERecogniser(String modelPath)
modelPath
- path to NER model filepublic boolean isAvailable()
NERecogniser
isAvailable
in interface NERecogniser
true
if model was available, valid and was able to initialise the classifier.
returns false
when this recogniser is not available for service.public Set<String> getEntityTypes()
getEntityTypes
in interface NERecogniser
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.