public class LoadModelResources extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
loadParseResources(opennlp.tools.util.TrainingParameters params)
Load the external resources such as gazetters and clustering lexicons.
|
static void |
loadResource(String serializerId,
Map<String,opennlp.tools.util.model.ArtifactSerializer> artifactSerializers,
String resourcePath,
Map<String,Object> resources)
Load a resource by resourceId.
|
static Map<String,Object> |
loadSequenceResources(opennlp.tools.util.TrainingParameters params)
Load the external resources such as gazetters and clustering lexicons.
|
public static Map<String,Object> loadSequenceResources(opennlp.tools.util.TrainingParameters params) throws IOException
params - the training parametersIOException - if io errorpublic static Map<String,Object> loadParseResources(opennlp.tools.util.TrainingParameters params) throws IOException
params - the training parametersIOException - if io errorpublic static void loadResource(String serializerId, Map<String,opennlp.tools.util.model.ArtifactSerializer> artifactSerializers, String resourcePath, Map<String,Object> resources)
serializerId - the serializer idartifactSerializers - the serializers in which to put the resourceresourcePath - the canonical path of the resourceresources - the map in which to put the resourceCopyright © 2016 IXA pipes. All rights reserved.