Matcherthat 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.
|Constructor and Description|
Construct a boolean matcher adapter that returns the specified score.
|Modifier and Type||Method and Description|
Final implementation of the matching function required by
public BooleanMatcherAdapter(int score)
score- Score to return if there is a match.
public abstract boolean matchBoolean(Mention mention, MentionChain mentionChain)
trueif the specified mention matches the specified mention chain.
mention- Mention to compare for possible coreference.
mentionChain- Mention chain to compare for possible coreference.
trueif 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