opennlp.tools.coref.resolver
Class SingletonNonReferentialResolver
java.lang.Object
opennlp.tools.coref.resolver.DefaultNonReferentialResolver
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.