gate
Interface ProcessingResource
- All Superinterfaces:
- Executable, FeatureBearer, NameBearer, Resource, Serializable
- All Known Subinterfaces:
- Gazetteer, LanguageAnalyser, OntoGazetteer
- All Known Implementing Classes:
- AbstractCoreferencer, AbstractGazetteer, AbstractLanguageAnalyser, AbstractOntoGazetteer, AbstractProcessingResource, ANNIETransducer, AnnotationDeletePR, AnnotationSetTransfer, APFormatExporter, ChineseTokeniser, Coreferencer, DefaultGazetteer, DefaultTokeniser, DumpingPR, FlexibleGazetteer, GazetteerListsCollector, Kea, MachineLearningPR, Morph, NominalCoref, OntoGazetteerImpl, OntologyAwareTransducer, OrthoMatcher, POSTagger, PronominalCoref, RDFFormatExporter, SearchPR, SentenceSplitter, SimpleTokeniser, TestNLGLexiconPR, Transducer, VPChunker
public interface ProcessingResource
- extends Resource, Executable
Models all sorts of processing resources.
Because run()
doesn't throw exceptions, we
have a check()
that will re-throw any exception
that was caught when run()
was invoked.
Method Summary |
void |
reInit()
Reinitialises the processing resource. |
reInit
void reInit()
throws ResourceInstantiationException
- Reinitialises the processing resource. After calling this method the
resource should be in the state it is after calling init.
If the resource depends on external resources (such as rules files) then
the resource will re-read those resources. If the data used to create
the resource has changed since the resource has been created then the
resource will change too after calling reInit().
- Throws:
ResourceInstantiationException