com.aliasi.coref.matchers
Class EntityTypeMatch
java.lang.Object
com.aliasi.coref.BooleanMatcherAdapter
com.aliasi.coref.matchers.EntityTypeMatch
- All Implemented Interfaces:
- Matcher
public class EntityTypeMatch
- extends BooleanMatcherAdapter
Implements a matching function that returns the score
specified in the constructor if the mention has
the specified entity type.
- Since:
- LingPipe1.0
- Version:
- 1.0
- Author:
- Bob Carpenter
|
Constructor Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityTypeMatch
public 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.
- Parameters:
score - Score to return if there is a match.entityType - Entity type of mention resulting in a match.
matchBoolean
public boolean matchBoolean(Mention mention,
MentionChain chain)
- Returns
true if the mention has the type
that was specified in the constructor.
- Specified by:
matchBoolean in class BooleanMatcherAdapter
- Parameters:
mention - Mention to match.chain - Mention chain to match.
- Returns:
true if the mention has the specified type.