public class SequenceLabelerFactory
extends opennlp.tools.util.BaseToolFactory
| Constructor and Description |
|---|
SequenceLabelerFactory()
Creates a
SequenceLabelerFactory that provides the default
implementation of the resources. |
SequenceLabelerFactory(byte[] featureGeneratorBytes,
Map<String,Object> resources,
SequenceLabelerCodec<String> seqCodec) |
| Modifier and Type | Method and Description |
|---|---|
static SequenceLabelerFactory |
create(String subclassName,
byte[] featureGeneratorBytes,
Map<String,Object> resources,
SequenceLabelerCodec<String> seqCodec) |
SequenceLabelerContextGenerator |
createContextGenerator() |
opennlp.tools.util.featuregen.AdaptiveFeatureGenerator |
createFeatureGenerators()
Creates the
AdaptiveFeatureGenerator. |
SequenceLabelerCodec<String> |
createSequenceCodec() |
protected byte[] |
getFeatureGenerator() |
protected Map<String,Object> |
getResources() |
protected SequenceLabelerCodec<String> |
getSequenceCodec() |
static SequenceLabelerCodec<String> |
instantiateSequenceCodec(String sequenceCodecImplName) |
void |
validateArtifactMap() |
public SequenceLabelerFactory()
SequenceLabelerFactory that provides the default
implementation of the resources.public SequenceLabelerFactory(byte[] featureGeneratorBytes,
Map<String,Object> resources,
SequenceLabelerCodec<String> seqCodec)
protected SequenceLabelerCodec<String> getSequenceCodec()
protected byte[] getFeatureGenerator()
public static SequenceLabelerFactory create(String subclassName, byte[] featureGeneratorBytes, Map<String,Object> resources, SequenceLabelerCodec<String> seqCodec) 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 SequenceLabelerCodec<String> createSequenceCodec()
public SequenceLabelerContextGenerator createContextGenerator()
public opennlp.tools.util.featuregen.AdaptiveFeatureGenerator createFeatureGenerators()
AdaptiveFeatureGenerator. Usually this is a set of
generators contained in the AggregatedFeatureGenerator.
Note: The generators are created on every call to this method.public static SequenceLabelerCodec<String> instantiateSequenceCodec(String sequenceCodecImplName)
Copyright © 2017 IXA pipes. All rights reserved.