opennlp.tools.coref.resolver
Class ProperNounResolver
java.lang.Object
opennlp.tools.coref.resolver.AbstractResolver
opennlp.tools.coref.resolver.MaxentResolver
opennlp.tools.coref.resolver.ProperNounResolver
- All Implemented Interfaces:
- Resolver
public class ProperNounResolver
- extends MaxentResolver
Resolves coreference between proper nouns.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProperNounResolver
public ProperNounResolver(String projectName,
ResolverMode m)
throws IOException
- Throws:
IOException
ProperNounResolver
public ProperNounResolver(String projectName,
ResolverMode m,
NonReferentialResolver nonRefResolver)
throws IOException
- Throws:
IOException
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.
getAcronymFeatures
protected List<String> getAcronymFeatures(MentionContext mention,
DiscourseEntity entity)
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.
excluded
public boolean excluded(MentionContext mention,
DiscourseEntity entity)
- Description copied from class:
AbstractResolver
- Excludes entities which you are not compatible with the entity under consideration. The default
implementation excludes entities whose last extent contains the extent under consideration.
This prevents possessive pronouns from referring to the noun phrases they modify and other
undesirable things.
- Overrides:
excluded
in class MaxentResolver
- Parameters:
mention
- The mention which is being considered as referential.entity
- The entity to which the mention is to be resolved.
- Returns:
- true if the entity should be excluded, false otherwise.
Copyright © 2010. All Rights Reserved.