public class FixedTrainer extends AbstractTrainer
| Constructor and Description |
|---|
FixedTrainer(opennlp.tools.util.TrainingParameters params)
Construct a trainer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createTrainer(opennlp.tools.util.TrainingParameters params)
Create
TokenNameFinderFactory with custom features. |
static void |
loadResource(String serializerId,
Map<String,opennlp.tools.util.model.ArtifactSerializer> artifactSerializers,
String resourcePath,
byte[] featureGenDescriptor,
Map<String,Object> resources)
Load a resource by resourceId.
|
static Map<String,Object> |
loadResources(opennlp.tools.util.TrainingParameters params,
byte[] featureGenDescriptor)
Load the external resources such as gazetters and clustering lexicons.
|
getBeamSize, getLanguage, getNameClassifierFactory, getNameStream, getSequenceCodec, setLanguage, setNameClassifierFactory, setSequenceCodec, trainpublic FixedTrainer(opennlp.tools.util.TrainingParameters params)
throws IOException
params - the training parametersIOException - if io errorspublic void createTrainer(opennlp.tools.util.TrainingParameters params)
throws IOException
TokenNameFinderFactory with custom features.params - the parameter training fileIOException - if io errorpublic static Map<String,Object> loadResources(opennlp.tools.util.TrainingParameters params, byte[] featureGenDescriptor) throws IOException
params - the training parametersfeatureGenDescriptor - the feature generator descriptorIOException - if io errorpublic static void loadResource(String serializerId, Map<String,opennlp.tools.util.model.ArtifactSerializer> artifactSerializers, String resourcePath, byte[] featureGenDescriptor, Map<String,Object> resources)
serializerId - the serializer idartifactSerializers - the serializers in which to put the resourceresourcePath - the canonical path of the resourcefeatureGenDescriptor - the feature descriptorresources - the map in which to put the resourceCopyright © 2016 IXA pipes. All rights reserved.