|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DictionaryBasedEntityRecognizer
The DictionaryBasedEntityRecognizer
uses a Map
to
recognize entities in a text. An entity is identified thru the
Token.getType()
EntityRecognizer.ENTITY_TYPE
. The ID
coming in the map is stored in the meta data with the key
ENTITY_ID_KEY
.
Field Summary | |
---|---|
static String |
ENTITY_ID_KEY
ID meta key. |
Fields inherited from interface net.sf.eos.entity.EntityRecognizer |
---|
ENTITY_TYPE |
Method Summary | |
---|---|
Map<CharSequence,Set<CharSequence>> |
getEntityMap()
Return the entity map. |
int |
getMaxToken()
|
TextBuilder |
getTextBuilder()
Returns a setted builder. |
void |
setEntityMap(Map<CharSequence,Set<CharSequence>> entities)
Set the entity map. |
void |
setMaxToken(int maxToken)
|
void |
setTextBuilder(TextBuilder builder)
Sets a builder. |
Methods inherited from interface net.sf.eos.analyzer.Tokenizer |
---|
next |
Field Detail |
---|
static final String ENTITY_ID_KEY
Method Detail |
---|
void setEntityMap(Map<CharSequence,Set<CharSequence>> entities)
entities
- the entity mapTrie
Map<CharSequence,Set<CharSequence>> getEntityMap()
null
void setTextBuilder(TextBuilder builder)
TextBuilder.SPACE_BUILDER
setted at construction time.
builder
- a builder to set or null
TextBuilder getTextBuilder()
null
.int getMaxToken()
void setMaxToken(int maxToken)
maxToken
- the maxToken to set
IllegalArgumentException
- if and only if
token > 1
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |