opennlp.tools.coref.resolver
Class SpeechPronounResolver

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

public class SpeechPronounResolver
extends MaxentResolver

Resolves pronouns specific to quoted speech such as "you", "me", and "I".


Field Summary
 
Fields inherited from class opennlp.tools.coref.resolver.MaxentResolver
DEFAULT, DIFF, SAME
 
Constructor Summary
SpeechPronounResolver(String projectName, ResolverMode m)
           
SpeechPronounResolver(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.
 
Methods inherited from class opennlp.tools.coref.resolver.MaxentResolver
resolve, retain, setSimilarityModel, train
 
Methods inherited from class opennlp.tools.coref.resolver.AbstractResolver
setNumberSentencesBack
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpeechPronounResolver

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

SpeechPronounResolver

public SpeechPronounResolver(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.


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.