opennlp.tools.coref.resolver
Class PluralPronounResolver
java.lang.Object
opennlp.tools.coref.resolver.AbstractResolver
opennlp.tools.coref.resolver.MaxentResolver
opennlp.tools.coref.resolver.PluralPronounResolver
- All Implemented Interfaces:
- Resolver
public class PluralPronounResolver
- extends MaxentResolver
Resolves coreference between plural pronouns and their referents.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluralPronounResolver
public PluralPronounResolver(String projectName,
ResolverMode m)
throws IOException
- Throws:
IOException
PluralPronounResolver
public PluralPronounResolver(String projectName,
ResolverMode m,
NonReferentialResolver nrr)
throws IOException
- Throws:
IOException
getFeatures
protected List<String> getFeatures(MentionContext mention,
DiscourseEntity entity)
- Description copied from class:
MaxentResolver
- Returns a list of features for deciding whether the specified mention refers to the specified discourse entity.
- Overrides:
getFeatures
in class MaxentResolver
- Parameters:
mention
- the mention being considers as possibly referential.entity
- The discourse entity with which the mention is being considered referential.
- Returns:
- a list of features used to predict reference between the specified mention and entity.
outOfRange
protected boolean outOfRange(MentionContext mention,
DiscourseEntity entity)
- Description copied from class:
AbstractResolver
- Determines if the specified entity is too far from the specified mention to be resolved to it.
Once an entity has been determined to be out of range subsequent entities are not considered.
To skip intermediate entities @see excluded.
- Overrides:
outOfRange
in class AbstractResolver
- Parameters:
mention
- The mention which is being considered.entity
- The entity to which the mention is to be resolved.
- Returns:
- true is the entity is in range of the mention, false otherwise.
canResolve
public boolean canResolve(MentionContext mention)
- Description copied from interface:
Resolver
- Returns true if this resolver is able to resolve the referring expression of the same type
as the specified mention.
- Parameters:
mention
- The mention being considered for resolution.
- Returns:
- true if the resolver handles this type of referring
expression, false otherwise.
Copyright © 2010. All Rights Reserved.