|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Matcher
An implementation of the matching interface provides a score for matching a mention against a mention chain.
| 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 . |
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 |
|---|
static final int NO_MATCH_SCORE
static final int MAX_SEMANTIC_SCORE
4.
static final int MAX_DISTANCE_SCORE
2.
static final int MAX_SCORE
MAX_SEMANTIC_SCORE +
MAX_DISTANCE_SCORE.
| Method Detail |
|---|
int match(Mention mention,
MentionChain chain)
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.
mention - Mention to match.chain - Mention chain to match.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||