public interface EntityVerifier
Modifier and Type | Method and Description |
---|---|
EntityType |
determineType(java.lang.String term)
Determine the entity type for a particular term.
|
java.lang.String |
getModel()
Get the model string.
|
java.util.Set<EntityType> |
getSupportedTypes()
Return the list of types this verifier can verify.
|
java.lang.String |
normalize(java.lang.String term,
EntityType type)
Get a normalized form for this entity and type.
|
void |
setModel(java.lang.String model)
Set the model for this entity verifier.
|
boolean |
verifyType(java.lang.String term,
EntityType type)
Verify that the term matches the type.
|
EntityType determineType(java.lang.String term)
term
- the term to check. This is the extracted entityjava.lang.String getModel()
java.util.Set<EntityType> getSupportedTypes()
java.lang.String normalize(java.lang.String term, EntityType type)
term
- the term to normalizetype
- the entity typevoid setModel(java.lang.String model)
model
- the model for the entity verifierboolean verifyType(java.lang.String term, EntityType type)
term
- the term to check. This is the extracted entitytype
- the type to check against.