Package | Description |
---|---|
opennlp.tools.coref |
Package related to performing coreference resolution.
|
opennlp.tools.coref.mention |
Package related to the modeling mentions for coreference resolution.
|
opennlp.tools.coref.resolver |
Package related to resolution techniques for coreference resolution.
|
opennlp.tools.coref.sim |
Package related to the modeling mention similarity for coreference resolution.
|
Modifier and Type | Method and Description |
---|---|
List<Parse> |
CorefSample.getParses() |
Modifier and Type | Class and Description |
---|---|
class |
AbstractParse
Provides default implemenation of many of the methods in the
Parse interface. |
class |
DefaultParse
|
Modifier and Type | Field and Description |
---|---|
protected Parse |
Mention.parse
The parse node that this extent is based on.
|
Modifier and Type | Method and Description |
---|---|
Parse |
MentionContext.getFirstToken()
Returns the parse for the first token in this mention.
|
Parse |
MentionContext.getHead() |
Parse |
HeadFinder.getHead(Parse parse)
Returns the child parse which contains the lexical head of the specified parse.
|
Parse |
PTBHeadFinder.getHead(Parse p) |
Parse |
HeadFinder.getHeadToken(Parse np)
Returns head token for the specified np parse.
|
Parse |
PTBHeadFinder.getHeadToken(Parse p) |
Parse |
MentionContext.getHeadTokenParse()
Returns the parse of the head token for this mention.
|
Parse |
HeadFinder.getLastHead(Parse p)
Returns the parse bottom-most head of a
Parse . |
Parse |
PTBHeadFinder.getLastHead(Parse p)
Returns the bottom-most head of a
Parse . |
Parse |
Parse.getNextToken()
Returns the next token which is not a child of this parse.
|
Parse |
MentionContext.getNextToken() |
Parse |
DefaultParse.getNextToken() |
Parse |
MentionContext.getNextTokenBasal() |
Parse |
Parse.getParent()
Returns the parent parse of this parse node.
|
Parse |
DefaultParse.getParent() |
Parse |
Mention.getParse()
Returns the parse node that this extent is based on.
|
Parse |
Parse.getPreviousToken()
Returns the first token which is not a child of this parse.
|
Parse |
MentionContext.getPreviousToken() |
Parse |
DefaultParse.getPreviousToken() |
Parse[] |
MentionContext.getTokenParses()
Returns the parses for the tokens which are contained in this mention.
|
Modifier and Type | Method and Description |
---|---|
protected Map<Parse,Parse> |
AbstractMentionFinder.constructHeadMap(List<Parse> nps)
Assigns head relations between noun phrases and the child np
which is their head.
|
protected Map<Parse,Parse> |
AbstractMentionFinder.constructHeadMap(List<Parse> nps)
Assigns head relations between noun phrases and the child np
which is their head.
|
List<Parse> |
Parse.getChildren()
Returns a list of the children to this object.
|
List<Parse> |
DefaultParse.getChildren() |
List<Parse> |
Parse.getNamedEntities()
Returns a list of all the named entities
contained by this parse.
|
List<Parse> |
DefaultParse.getNamedEntities() |
List<Parse> |
AbstractMentionFinder.getNamedEntities(Parse p)
Return all noun phrases which are contained by
p . |
List<Parse> |
Parse.getNounPhrases()
Returns a list of the all noun phrases
contained by this parse.
|
List<Parse> |
AbstractParse.getNounPhrases() |
List<Parse> |
Parse.getSyntacticChildren()
Returns a list of the children to this object which are constituents or tokens.
|
List<Parse> |
DefaultParse.getSyntacticChildren() |
List<Parse> |
Parse.getTokens()
Returns a list of the tokens contained by this object.
|
List<Parse> |
DefaultParse.getTokens() |
Modifier and Type | Method and Description |
---|---|
int |
DefaultParse.compareTo(Parse p) |
Parse |
HeadFinder.getHead(Parse parse)
Returns the child parse which contains the lexical head of the specified parse.
|
Parse |
PTBHeadFinder.getHead(Parse p) |
int |
HeadFinder.getHeadIndex(Parse parse)
Returns which index the specified list of token is the head word.
|
int |
PTBHeadFinder.getHeadIndex(Parse p) |
Parse |
HeadFinder.getHeadToken(Parse np)
Returns head token for the specified np parse.
|
Parse |
PTBHeadFinder.getHeadToken(Parse p) |
Parse |
HeadFinder.getLastHead(Parse p)
Returns the parse bottom-most head of a
Parse . |
Parse |
PTBHeadFinder.getLastHead(Parse p)
Returns the bottom-most head of a
Parse . |
Mention[] |
AbstractMentionFinder.getMentions(Parse p) |
Mention[] |
MentionFinder.getMentions(Parse parse)
Returns an array of mentions.
|
List<Parse> |
AbstractMentionFinder.getNamedEntities(Parse p)
Return all noun phrases which are contained by
p . |
protected boolean |
AbstractMentionFinder.isBasalNounPhrase(Parse np) |
protected boolean |
AbstractMentionFinder.isConjoinedBasal(Parse np) |
protected boolean |
AbstractMentionFinder.isOfPrepPhrase(Parse np) |
protected boolean |
AbstractMentionFinder.isPossessive(Parse np) |
void |
Mention.setParse(Parse parse)
Specifies the parse for this mention.
|
Modifier and Type | Method and Description |
---|---|
protected Map<Parse,Parse> |
AbstractMentionFinder.constructHeadMap(List<Parse> nps)
Assigns head relations between noun phrases and the child np
which is their head.
|
Constructor and Description |
---|
Mention(Span span,
Span headSpan,
int entityId,
Parse parse,
String extentType) |
Mention(Span span,
Span headSpan,
int entityId,
Parse parse,
String extentType,
String nameType) |
MentionContext(Span span,
Span headSpan,
int entityId,
Parse parse,
String extentType,
String nameType,
int mentionIndex,
int mentionsInSentence,
int mentionIndexInDocument,
int sentenceIndex,
HeadFinder headFinder) |
Modifier and Type | Method and Description |
---|---|
protected Parse |
AbstractResolver.getHead(MentionContext mention)
Returns the head parse for the specified mention.
|
Modifier and Type | Method and Description |
---|---|
static Set<String> |
ResolverUtils.constructModifierSet(Parse[] tokens,
int headIndex) |
static List<String> |
ResolverUtils.getWordFeatures(Parse token)
Returns a list of word features for the specified tokens.
|
Constructor and Description |
---|
Context(Span span,
Span headSpan,
int entityId,
Parse parse,
String extentType,
String nameType,
HeadFinder headFinder) |
Copyright © 2017 The Apache Software Foundation. All rights reserved.