public final class NameFinderTrainer
extends org.apache.uima.collection.CasConsumer_ImplBase
Mandatory parameters
Type | Name | Description |
---|---|---|
String | opennlp.uima.ModelName | The name of the model file |
String | opennlp.uima.Language | The language code |
String | opennlp.uima.SentenceType | The full name of the sentence type |
String | opennlp.uima.TokenType | The full name of the token type |
String | opennlp.uima.NameType | The full name of the name type |
Type | Name | Description |
---|---|---|
String | opennlp.uima.opennlp.uima.TrainingParamsFile | Training Parameters Properties file |
String | opennlp.uima.FeatureGeneratorFile | Feature Generator definition file which contain the feature generator configuration |
String | opennlp.uima.FeatureGeneratorResources | Feature Generator resources dictionary |
String | opennlp.uima.AdditionalTrainingDataFile | Training file which contains additional data in the OpenNLP format |
String | opennlp.uima.AdditionalTrainingDataEncoding | Encoding of the additional training data |
String | opennlp.uima.SampleTraceFile | All training samples are traced to this file |
String | opennlp.uima.SampleTraceFileEncoding | Encoding of the sample trace file |
Constructor and Description |
---|
NameFinderTrainer() |
Modifier and Type | Method and Description |
---|---|
void |
collectionProcessComplete(org.apache.uima.util.ProcessTrace trace)
Called if the processing is finished, this method
does the training.
|
void |
destroy()
Destroys the current instance.
|
void |
initialize()
Initializes the current instance.
|
boolean |
isStateless()
The trainer is not stateless.
|
void |
processCas(org.apache.uima.cas.CAS cas)
Process the given CAS object.
|
void |
typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
Initialize the current instance with the given type system.
|
batchProcessComplete, getProcessingResourceMetaData, initialize, isReadOnly, processCas, reconfigure
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void initialize() throws org.apache.uima.resource.ResourceInitializationException
initialize
in class org.apache.uima.collection.CasConsumer_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) throws org.apache.uima.resource.ResourceInitializationException
typeSystemInit
in interface org.apache.uima.collection.base_cpm.CasObjectProcessor
typeSystemInit
in class org.apache.uima.collection.CasConsumer_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void processCas(org.apache.uima.cas.CAS cas)
public void collectionProcessComplete(org.apache.uima.util.ProcessTrace trace) throws org.apache.uima.resource.ResourceProcessException, IOException
collectionProcessComplete
in interface org.apache.uima.collection.base_cpm.CasProcessor
collectionProcessComplete
in class org.apache.uima.collection.CasConsumer_ImplBase
org.apache.uima.resource.ResourceProcessException
IOException
public boolean isStateless()
isStateless
in interface org.apache.uima.collection.base_cpm.CasProcessor
isStateless
in class org.apache.uima.collection.CasConsumer_ImplBase
public void destroy()
destroy
in interface org.apache.uima.resource.Resource
destroy
in class org.apache.uima.collection.CasConsumer_ImplBase
Copyright © 2016 The Apache Software Foundation. All rights reserved.