public abstract class AbstractTrainer extends Object implements Trainer
| Constructor and Description |
|---|
AbstractTrainer(opennlp.tools.util.TrainingParameters params)
Construct an AbstractTrainer.
|
| Modifier and Type | Method and Description |
|---|---|
protected opennlp.tools.chunker.ChunkerFactory |
getChunkerFactory()
Get the chunkerFactory.
|
protected void |
setChunkerFactory(opennlp.tools.chunker.ChunkerFactory aChunkerFactory)
Set/implement the chunkerFactory to be used in the training.
|
opennlp.tools.chunker.ChunkerModel |
train(opennlp.tools.util.TrainingParameters params)
Train a chunker model with a parameters file.
|
public AbstractTrainer(opennlp.tools.util.TrainingParameters params)
throws IOException
params - the training parametersIOException - the io exceptionspublic final opennlp.tools.chunker.ChunkerModel train(opennlp.tools.util.TrainingParameters params)
Trainerprotected final opennlp.tools.chunker.ChunkerFactory getChunkerFactory()
protected final void setChunkerFactory(opennlp.tools.chunker.ChunkerFactory aChunkerFactory)
aChunkerFactory - the chunker factory implementedCopyright © 2016 IXA pipes. All rights reserved.