public class PluralPronounResolver extends MaxentResolver
DEFAULT, DIFF, nonReferentialResolver, pairedSampleSelection, preferFirstReferent, SAME, useSameModelForNonRefdistances, numEntitiesBack, numSentencesBack, showExclusions| Constructor and Description |
|---|
PluralPronounResolver(String projectName,
ResolverMode m) |
PluralPronounResolver(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 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 mention,
DiscourseEntity entity)
Determines if the specified entity is too far from the specified mention to be resolved to it.
|
defaultReferent, excluded, resolve, retain, setSimilarityModel, trainfeatureString, getHead, getHeadIndex, getHeadString, getNumEntities, getNumEntities, setNumberSentencesBackpublic PluralPronounResolver(String projectName, ResolverMode m) throws IOException
IOExceptionpublic PluralPronounResolver(String projectName, ResolverMode m, NonReferentialResolver nrr) throws IOException
IOExceptionprotected 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.protected boolean outOfRange(MentionContext mention, DiscourseEntity entity)
AbstractResolveroutOfRange in class AbstractResolvermention - The mention which is being considered.entity - The entity to which the mention is to be resolved.public boolean canResolve(MentionContext mention)
Resolvermention - The mention being considered for resolution.Copyright © 2019 The Apache Software Foundation. All rights reserved.