public class EntityTypeMatch extends BooleanMatcherAdapter
MAX_DISTANCE_SCORE, MAX_SCORE, MAX_SEMANTIC_SCORE, NO_MATCH_SCORE| Constructor and Description |
|---|
EntityTypeMatch(int score,
String entityType)
Construct an instance of an entity type matcher
that returns the specified score for a match against
a mention of the specified type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matchBoolean(Mention mention,
MentionChain chain)
Returns
true if the mention has the type
that was specified in the constructor. |
matchpublic EntityTypeMatch(int score,
String entityType)
score - Score to return if there is a match.entityType - Entity type of mention resulting in a match.public boolean matchBoolean(Mention mention, MentionChain chain)
true if the mention has the type
that was specified in the constructor.matchBoolean in class BooleanMatcherAdaptermention - Mention to match.chain - Mention chain to match.true if the mention has the specified type.Copyright © 2016 Alias-i, Inc.. All rights reserved.