Package org.apache.tika.parser.ner
Interface NERecogniser
- All Known Implementing Classes:
CoreNLPNERecogniser
,GrobidNERecogniser
,MITIENERecogniser
,NLTKNERecogniser
,OpenNLPNameFinder
,OpenNLPNERecogniser
,RegexNERecogniser
public interface NERecogniser
Defines a contract for named entity recogniser. The NER contract includes
isAvailable()
,
getEntityTypes()
and recognise(String)
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongets a set of entity types whose names are recognisable by thisboolean
checks if this Named Entity recogniser is available for servicecall for name recognition action from text
-
Field Details
-
LOCATION
- See Also:
-
PERSON
- See Also:
-
ORGANIZATION
- See Also:
-
MISCELLANEOUS
- See Also:
-
TIME
- See Also:
-
DATE
- See Also:
-
PERCENT
- See Also:
-
MONEY
- See Also:
-
-
Method Details
-
isAvailable
boolean isAvailable()checks if this Named Entity recogniser is available for service- Returns:
- true if this recogniser is ready to recognise, false otherwise
-
getEntityTypes
gets a set of entity types whose names are recognisable by this- Returns:
- set of entity types/classes
-
recognise
call for name recognition action from text- Parameters:
text
- text with possibly contains names- Returns:
- map of entityType -> set of names
-