com.aliasi.coref.matchers
Class ExactPhraseMatch

java.lang.Object
  extended by com.aliasi.coref.BooleanMatcherAdapter
      extended by 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

Field Summary
 
Fields inherited from interface com.aliasi.coref.Matcher
MAX_DISTANCE_SCORE, MAX_SCORE, MAX_SEMANTIC_SCORE, NO_MATCH_SCORE
 
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 com.aliasi.coref.BooleanMatcherAdapter
match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.