public class IsAResolver extends MaxentResolver
DEFAULT, DIFF, nonReferentialResolver, pairedSampleSelection, preferFirstReferent, SAME, useSameModelForNonRefdistances, numEntitiesBack, numSentencesBack, showExclusions| Constructor and Description |
|---|
IsAResolver(String projectName,
ResolverMode m) |
IsAResolver(String projectName,
ResolverMode m,
NonReferentialResolver nrr) |
| 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 |
defaultReferent(DiscourseEntity de)
Returns whether the specified entity satisfies the criteria for being a default referent.
|
protected boolean |
excluded(MentionContext ec,
DiscourseEntity de)
Excludes entities which you are not compatible with the entity under consideration.
|
protected List<String> |
getFeatures(MentionContext mention,
DiscourseEntity entity)
Returns a list of features for deciding whether the specified mention refers to the specified discourse entity.
|
protected boolean |
outOfRange(MentionContext ec,
DiscourseEntity de)
Determines if the specified entity is too far from the specified mention to be resolved to it.
|
resolve, retain, setSimilarityModel, trainfeatureString, getHead, getHeadIndex, getHeadString, getNumEntities, getNumEntities, setNumberSentencesBackpublic IsAResolver(String projectName, ResolverMode m) throws IOException
IOExceptionpublic IsAResolver(String projectName, ResolverMode m, NonReferentialResolver nrr) throws IOException
IOExceptionpublic boolean canResolve(MentionContext ec)
Resolverec - The mention being considered for resolution.protected boolean excluded(MentionContext ec, DiscourseEntity de)
AbstractResolverexcluded in class MaxentResolverec - The mention which is being considered as referential.de - The entity to which the mention is to be resolved.protected boolean outOfRange(MentionContext ec, DiscourseEntity de)
AbstractResolveroutOfRange in class AbstractResolverec - The mention which is being considered.de - The entity to which the mention is to be resolved.protected boolean defaultReferent(DiscourseEntity de)
MaxentResolverdefaultReferent in class MaxentResolverde - The discourse entity being considered for non-reference.protected List<String> getFeatures(MentionContext mention, DiscourseEntity entity)
MaxentResolvergetFeatures in class MaxentResolvermention - the mention being considers as possibly referential.entity - The discourse entity with which the mention is being considered referential.Copyright © 2016 The Apache Software Foundation. All rights reserved.