public abstract class BooleanMatcherAdapter extends Object implements Matcher
Matcher that returns a
constant value if a boolean condition is satisifed and the no-match
score otherwise. The constructor provides the constant score for a
match, and the logic is provided through an implementation of
the method matchBoolean(Mention,MentionChain) by a subclass.MAX_DISTANCE_SCORE, MAX_SCORE, MAX_SEMANTIC_SCORE, NO_MATCH_SCORE| Constructor and Description |
|---|
BooleanMatcherAdapter(int score)
Construct a boolean matcher adapter that returns the
specified score.
|
| Modifier and Type | Method and Description |
|---|---|
int |
match(Mention mention,
MentionChain mentionChain)
Final implementation of the matching function required by
Matcher. |
abstract boolean |
matchBoolean(Mention mention,
MentionChain mentionChain)
Returns
true if the specified mention matches
the specified mention chain. |
public BooleanMatcherAdapter(int score)
score - Score to return if there is a match.public abstract boolean matchBoolean(Mention mention, MentionChain mentionChain)
true if the specified mention matches
the specified mention chain.mention - Mention to compare for possible coreference.mentionChain - Mention chain to compare for possible
coreference.true if the mention matches the mention
chain according to this matching function.public final int match(Mention mention, MentionChain mentionChain)
Matcher. Returns the constant
specified in the constructor if matchBoolean(Mention,MentionChain) returns true
and returns Matcher.NO_MATCH_SCORE
otherwise.Copyright © 2016 Alias-i, Inc.. All rights reserved.