public class DocumentClassifierFactory
extends opennlp.tools.util.BaseToolFactory
| Constructor and Description |
|---|
DocumentClassifierFactory()
Creates a
DocumentClassifierFactory that provides the default
implementation of the resources. |
DocumentClassifierFactory(byte[] featureGeneratorBytes,
Map<String,Object> resources) |
| Modifier and Type | Method and Description |
|---|---|
static DocumentClassifierFactory |
create(String subclassName,
byte[] featureGeneratorBytes,
Map<String,Object> resources) |
DocumentClassifierContextGenerator |
createContextGenerator() |
DocumentFeatureGenerator |
createFeatureGenerators()
Creates the
DocumentFeatureGenerator. |
protected byte[] |
getFeatureGenerator() |
protected Map<String,Object> |
getResources() |
void |
validateArtifactMap() |
public DocumentClassifierFactory()
DocumentClassifierFactory that provides the default
implementation of the resources.protected byte[] getFeatureGenerator()
public static DocumentClassifierFactory create(String subclassName, byte[] featureGeneratorBytes, Map<String,Object> resources) throws opennlp.tools.util.InvalidFormatException
opennlp.tools.util.InvalidFormatExceptionpublic void validateArtifactMap()
throws opennlp.tools.util.InvalidFormatException
validateArtifactMap in class opennlp.tools.util.BaseToolFactoryopennlp.tools.util.InvalidFormatExceptionpublic DocumentClassifierContextGenerator createContextGenerator()
public DocumentFeatureGenerator createFeatureGenerators()
DocumentFeatureGenerator. Usually this is a set of
generators contained in the DocumentFeatureAggregator.
Note: The generators are created on every call to this method.Copyright © 2017 IXA pipes. All rights reserved.