opennlp.tools.coref.resolver
Class DefiniteNounResolver

java.lang.Object
  extended by opennlp.tools.coref.resolver.AbstractResolver
      extended by opennlp.tools.coref.resolver.MaxentResolver
          extended by opennlp.tools.coref.resolver.DefiniteNounResolver
All Implemented Interfaces:
Resolver

public class DefiniteNounResolver
extends MaxentResolver

Resolves coreference between definite noun-phrases.


Field Summary
 
Fields inherited from class opennlp.tools.coref.resolver.MaxentResolver
DEFAULT, DIFF, nonReferentialResolver, pairedSampleSelection, preferFirstReferent, SAME, useSameModelForNonRef
 
Fields inherited from class opennlp.tools.coref.resolver.AbstractResolver
distances, numEntitiesBack, numSentencesBack, showExclusions
 
Constructor Summary
DefiniteNounResolver(String projectName, ResolverMode m)
           
DefiniteNounResolver(String projectName, ResolverMode m, NonReferentialResolver nrr)
           
 
Method Summary
 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.
 
Methods inherited from class opennlp.tools.coref.resolver.MaxentResolver
defaultReferent, excluded, resolve, retain, setSimilarityModel, train
 
Methods inherited from class opennlp.tools.coref.resolver.AbstractResolver
featureString, getHead, getHeadIndex, getHeadString, getNumEntities, getNumEntities, outOfRange, setNumberSentencesBack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefiniteNounResolver

public DefiniteNounResolver(String projectName,
                            ResolverMode m)
                     throws IOException
Throws:
IOException

DefiniteNounResolver

public DefiniteNounResolver(String projectName,
                            ResolverMode m,
                            NonReferentialResolver nrr)
                     throws IOException
Throws:
IOException
Method Detail

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.

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.


Copyright © 2010. All Rights Reserved.