public class IsAResolver extends MaxentResolver
DEFAULT, DIFF, nonReferentialResolver, pairedSampleSelection, preferFirstReferent, SAME, useSameModelForNonRef
distances, 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, train
featureString, getHead, getHeadIndex, getHeadString, getNumEntities, getNumEntities, setNumberSentencesBack
public IsAResolver(String projectName, ResolverMode m) throws IOException
IOException
public IsAResolver(String projectName, ResolverMode m, NonReferentialResolver nrr) throws IOException
IOException
public boolean canResolve(MentionContext ec)
Resolver
ec
- The mention being considered for resolution.protected boolean excluded(MentionContext ec, DiscourseEntity de)
AbstractResolver
excluded
in class MaxentResolver
ec
- 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)
AbstractResolver
outOfRange
in class AbstractResolver
ec
- The mention which is being considered.de
- The entity to which the mention is to be resolved.protected boolean defaultReferent(DiscourseEntity de)
MaxentResolver
defaultReferent
in class MaxentResolver
de
- The discourse entity being considered for non-reference.protected List<String> getFeatures(MentionContext mention, DiscourseEntity entity)
MaxentResolver
getFeatures
in class MaxentResolver
mention
- the mention being considers as possibly referential.entity
- The discourse entity with which the mention is being considered referential.Copyright © 2015 The Apache Software Foundation. All rights reserved.