opennlp.tools.coref.resolver
Class DefiniteNounResolver
java.lang.Object
opennlp.tools.coref.resolver.AbstractResolver
opennlp.tools.coref.resolver.MaxentResolver
opennlp.tools.coref.resolver.DefiniteNounResolver
- All Implemented Interfaces:
- Resolver
public class DefiniteNounResolver
- extends MaxentResolver
Resolves coreference between definite noun-phrases.
|
Method Summary |
boolean |
canResolve(MentionContext mention)
Returns true if this resolver is able to resolve the referening experession of the same type
as the specified mention. |
protected java.util.List |
getFeatures(MentionContext mention,
DiscourseEntity entity)
Returns a list of features for deciding whether the specificed mention refers to the specified discourse entity. |
| Methods inherited from class opennlp.tools.coref.resolver.MaxentResolver |
defaultReferent, definiteArticle, excluded, getContextFeatures, getDistanceFeatures, getMentionCountFeature, getPronounMatchFeatures, getStringMatchFeatures, getWordFeatures, loadAsResource, loadAsResource, resolve, retain, setSimilarityModel, train |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefiniteNounResolver
public DefiniteNounResolver(java.lang.String projectName,
ResolverMode m)
throws java.io.IOException
- Throws:
java.io.IOException
DefiniteNounResolver
public DefiniteNounResolver(java.lang.String projectName,
ResolverMode m,
NonReferentialResolver nrr)
throws java.io.IOException
- Throws:
java.io.IOException
canResolve
public boolean canResolve(MentionContext mention)
- Description copied from interface:
Resolver
- Returns true if this resolver is able to resolve the referening experession 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 refering
expression, false otherwise.
getFeatures
protected java.util.List getFeatures(MentionContext mention,
DiscourseEntity entity)
- Description copied from class:
MaxentResolver
- Returns a list of features for deciding whether the specificed mention refers to the specified discourse entity.
- Overrides:
getFeatures in class MaxentResolver
- Parameters:
mention - the mention being considers as possibly referential.entity - The disource entity with which the mention is being considered referential.
- Returns:
- a list of features used to predict reference between the specified mention and entity.
Copyright 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.