public class NLTKNERecogniser extends java.lang.Object implements NERecogniser
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 Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.String> |
ENTITY_TYPES
some common entities identified by NLTK
|
DATE, LOCATION, MISCELLANEOUS, MONEY, ORGANIZATION, PERCENT, PERSON, TIME
Constructor and Description |
---|
NLTKNERecogniser() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getEntityTypes()
Gets set of entity types recognised by this recogniser
|
boolean |
isAvailable()
checks if this Named Entity recogniser is available for service
|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
recognise(java.lang.String text)
recognises names of entities in the text
|
public static final java.util.Set<java.lang.String> ENTITY_TYPES
public boolean isAvailable()
NERecogniser
isAvailable
in interface NERecogniser
true
if server endpoint is available.
returns false
if server endpoint is not avaliable for service.public java.util.Set<java.lang.String> getEntityTypes()
getEntityTypes
in interface NERecogniser
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> recognise(java.lang.String text)
recognise
in interface NERecogniser
text
- text which possibly contains names"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"