public class ProperNounResolver extends MaxentResolver
DEFAULT, DIFF, nonReferentialResolver, pairedSampleSelection, preferFirstReferent, SAME, useSameModelForNonRefdistances, numEntitiesBack, numSentencesBack, showExclusions| Constructor and Description |
|---|
ProperNounResolver(String projectName,
ResolverMode m) |
ProperNounResolver(String projectName,
ResolverMode m,
NonReferentialResolver nonRefResolver) |
| 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.
|
boolean |
excluded(MentionContext mention,
DiscourseEntity entity)
Excludes entities which you are not compatible with the entity under consideration.
|
protected List<String> |
getAcronymFeatures(MentionContext mention,
DiscourseEntity entity) |
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, trainfeatureString, getHead, getHeadIndex, getHeadString, getNumEntities, getNumEntities, outOfRange, setNumberSentencesBackpublic ProperNounResolver(String projectName, ResolverMode m) throws IOException
IOExceptionpublic ProperNounResolver(String projectName, ResolverMode m, NonReferentialResolver nonRefResolver) throws IOException
IOExceptionpublic boolean canResolve(MentionContext mention)
Resolvermention - The mention being considered for resolution.protected List<String> getAcronymFeatures(MentionContext mention, DiscourseEntity entity)
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.public boolean excluded(MentionContext mention, DiscourseEntity entity)
AbstractResolverexcluded in class MaxentResolvermention - The mention which is being considered as referential.entity - The entity to which the mention is to be resolved.Copyright © 2016 The Apache Software Foundation. All rights reserved.