com.aliasi.coref
Interface Matcher

All Known Implementing Classes:
BooleanMatcherAdapter, EntityTypeMatch, ExactPhraseMatch, SequenceSubstringMatch, SynonymMatch

public interface Matcher

An implementation of the matching interface provides a score for matching a mention against a mention chain.

Since:
LingPipe1.0
Version:
1.0
Author:
Bob Carpenter

Field Summary
static int MAX_DISTANCE_SCORE
          Maximum distance score between a mention and a mention chain.
static int MAX_SCORE
          Maximum score; equal to MAX_SEMANTIC_SCORE + MAX_DISTANCE_SCORE.
static int MAX_SEMANTIC_SCORE
          Maximum value for the matching function, currently 4.
static int NO_MATCH_SCORE
          Value to return in cases where there can be no match.
 
Method Summary
 int match(Mention mention, MentionChain chain)
          Returns the match score between a specified mention and mention chain.
 

Field Detail

NO_MATCH_SCORE

static final int NO_MATCH_SCORE
Value to return in cases where there can be no match. Guaranteed to be negative and less than any normal match score.

See Also:
Constant Field Values

MAX_SEMANTIC_SCORE

static final int MAX_SEMANTIC_SCORE
Maximum value for the matching function, currently 4.

See Also:
Constant Field Values

MAX_DISTANCE_SCORE

static final int MAX_DISTANCE_SCORE
Maximum distance score between a mention and a mention chain. Currently set to 2.

See Also:
Constant Field Values

MAX_SCORE

static final int MAX_SCORE
Maximum score; equal to MAX_SEMANTIC_SCORE + MAX_DISTANCE_SCORE.

See Also:
Constant Field Values
Method Detail

match

int match(Mention mention,
          MentionChain chain)
Returns the match score between a specified mention and mention chain. Normal return values are positive integers between 0 and MAX_SEMANTIC_SCORE inclusive. A return value of NO_MATCH_SCORE, which is guaranteed to be negative, indicates that the mention cannot be matched to the mention chain.

Parameters:
mention - Mention to match.
chain - Mention chain to match.
Returns:
Match score between mention and mention chain.