|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Linker
A linker provides an interface for finding mentions, getMentionFinder
,
and creating entities out of those mentions, getEntities
. This interface also allows
for the training of a resolver with the method setEntitites
which is used to give the
resolver mentions whose entityId fields indicate which mentions refer to the same entity and the
train
method which compiles all the information provided via calls to
setEntities
into a model.
Field Summary | |
---|---|
static String |
COMBINED_NPS
String constant used to label a mention which consists of two or more noun phrases. |
static String |
DESCRIPTOR
String constant used to label a mention which is a description. |
static String |
ISA
String constant used to label an mention in an appositive relationship. |
static String |
NP
String constant used to label a mention which consists of a single noun phrase. |
static String |
PRONOUN_MODIFIER
String constant used to label a mention which is a pronoun. |
static String |
PROPER_NOUN_MODIFIER
String constant used to label a mention which is a proper noun modifying another noun. |
Method Summary | |
---|---|
MentionContext[] |
constructMentionContexts(Mention[] mentions)
Creates mention contexts for the specified mention exents. |
DiscourseEntity[] |
getEntities(Mention[] mentions)
Returns a list of entities which group the mentions into entity classes. |
HeadFinder |
getHeadFinder()
Returns the head finder associated with this linker. |
MentionFinder |
getMentionFinder()
Returns the mention finder for this linker. |
void |
setEntities(Mention[] mentions)
Indicated that the specified mentions can be used to train this linker. |
void |
train()
Trains the linker based on the data specified via calls to setEntities . |
Field Detail |
---|
static final String DESCRIPTOR
static final String ISA
static final String COMBINED_NPS
static final String NP
static final String PROPER_NOUN_MODIFIER
static final String PRONOUN_MODIFIER
Method Detail |
---|
void setEntities(Mention[] mentions)
mentions
- The mentions to be used to train the linker.DiscourseEntity[] getEntities(Mention[] mentions)
mentions
- A array of mentions.
MentionContext[] constructMentionContexts(Mention[] mentions)
mentions
- The mention of a document.
void train() throws IOException
setEntities
.
IOException
MentionFinder getMentionFinder()
HeadFinder getHeadFinder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |