opennlp.tools.coref.resolver
Class SingletonNonReferentialResolver

java.lang.Object
  extended by opennlp.tools.coref.resolver.DefaultNonReferentialResolver
      extended by opennlp.tools.coref.resolver.SingletonNonReferentialResolver
All Implemented Interfaces:
NonReferentialResolver

public class SingletonNonReferentialResolver
extends DefaultNonReferentialResolver

This class allows you to share a single instance of a non-referential resolver among several resolvers.


Method Summary
static SingletonNonReferentialResolver getInstance(String modelName, ResolverMode mode)
           
 void train()
          Trains a model based on the events given to this resolver via #addEvent.
 
Methods inherited from class opennlp.tools.coref.resolver.DefaultNonReferentialResolver
addEvent, getFeatures, getNonReferentialFeatures, getNonReferentialProbability
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SingletonNonReferentialResolver getInstance(String modelName,
                                                          ResolverMode mode)
                                                   throws IOException
Throws:
IOException

train

public void train()
           throws IOException
Description copied from interface: NonReferentialResolver
Trains a model based on the events given to this resolver via #addEvent.

Specified by:
train in interface NonReferentialResolver
Overrides:
train in class DefaultNonReferentialResolver
Throws:
IOException - When the model can not be written out.


Copyright © 2010. All Rights Reserved.