com.aliasi.coref.matchers
Class ExactPhraseMatch
java.lang.Object
com.aliasi.coref.BooleanMatcherAdapter
com.aliasi.coref.matchers.ExactPhraseMatch
- All Implemented Interfaces:
- Matcher
public final class ExactPhraseMatch
- extends BooleanMatcherAdapter
Implements a matching function that returns the score
specified in the constructor if there is a match
between the normal phrases of the mention and one of
the mentions in the mention chain.
- Since:
- LingPipe1.0
- Version:
- 3.8
- Author:
- Bob Carpenter
|
Constructor Summary |
ExactPhraseMatch(int score)
Construct an instance of an exact phrase matcher that
returns the specified score if there is a match. |
|
Method Summary |
boolean |
matchBoolean(Mention mention,
MentionChain chain)
Returns true if the normal phrase of the mention
is equal to the normal phrase of a mention in the mention chain. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExactPhraseMatch
public ExactPhraseMatch(int score)
- Construct an instance of an exact phrase matcher that
returns the specified score if there is a match.
- Parameters:
score - Score to return if there is a match.
matchBoolean
public boolean matchBoolean(Mention mention,
MentionChain chain)
- Returns
true if the normal phrase of the mention
is equal to the normal phrase of a mention in the mention chain.
- Specified by:
matchBoolean in class BooleanMatcherAdapter
- Parameters:
mention - Mention to match.chain - Mention chain to match.
- Returns:
true if the normal phrase of the mention
is equal to the normal phrase of a mention in the mention
chain.