public interface Matcher
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
match(Mention mention,
MentionChain chain)
Returns the match score between a specified mention and mention
chain.
|
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.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.Copyright © 2019 Alias-i, Inc.. All rights reserved.