public class PluralNounResolver extends MaxentResolver
DEFAULT, DIFF, nonReferentialResolver, pairedSampleSelection, preferFirstReferent, SAME, useSameModelForNonRef
distances, numEntitiesBack, numSentencesBack, showExclusions
Constructor and Description |
---|
PluralNounResolver(String projectName,
ResolverMode m) |
PluralNounResolver(String projectName,
ResolverMode m,
NonReferentialResolver nrr) |
Modifier and Type | Method and Description |
---|---|
boolean |
canResolve(MentionContext mention)
Returns true if this resolver is able to resolve the referring expression of the same type
as the specified mention.
|
protected boolean |
excluded(MentionContext mention,
DiscourseEntity entity)
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.
|
defaultReferent, resolve, retain, setSimilarityModel, train
featureString, getHead, getHeadIndex, getHeadString, getNumEntities, getNumEntities, outOfRange, setNumberSentencesBack
public PluralNounResolver(String projectName, ResolverMode m) throws IOException
IOException
public PluralNounResolver(String projectName, ResolverMode m, NonReferentialResolver nrr) throws IOException
IOException
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.public boolean canResolve(MentionContext mention)
Resolver
mention
- The mention being considered for resolution.protected boolean excluded(MentionContext mention, DiscourseEntity entity)
AbstractResolver
excluded
in class MaxentResolver
mention
- The mention which is being considered as referential.entity
- The entity to which the mention is to be resolved.Copyright © 2017 The Apache Software Foundation. All rights reserved.