public class PerfectResolver extends AbstractResolver
distances, numEntitiesBack, numSentencesBack, showExclusions
Constructor and Description |
---|
PerfectResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
canResolve(MentionContext ec)
Returns true if this resolver is able to resolve the referring expression of the same type
as the specified mention.
|
protected boolean |
outOfRange(MentionContext ec,
DiscourseEntity de)
Determines if the specified entity is too far from the specified mention to be resolved to it.
|
DiscourseEntity |
resolve(MentionContext ec,
DiscourseModel dm)
Resolve this referring expression to a discourse entity in the discourse model.
|
excluded, featureString, getHead, getHeadIndex, getHeadString, getNumEntities, getNumEntities, retain, setNumberSentencesBack, train
public boolean canResolve(MentionContext ec)
Resolver
ec
- The mention being considered for resolution.protected boolean outOfRange(MentionContext ec, DiscourseEntity de)
AbstractResolver
outOfRange
in class AbstractResolver
ec
- The mention which is being considered.de
- The entity to which the mention is to be resolved.public DiscourseEntity resolve(MentionContext ec, DiscourseModel dm)
Resolver
ec
- the referring expression.dm
- the discourse model.Copyright © 2015 The Apache Software Foundation. All rights reserved.