public abstract class FeaturizerFactory
extends opennlp.tools.util.BaseToolFactory
| Constructor and Description |
|---|
FeaturizerFactory()
Creates a
FeaturizerFactory that provides the default
implementation of the resources. |
FeaturizerFactory(FeatureDictionary featureDictionary,
String cgFlags)
Creates a
FeaturizerFactory. |
| Modifier and Type | Method and Description |
|---|---|
static FeaturizerFactory |
create(String subclassName,
FeatureDictionary posDictionary,
String cgFlags) |
Map<String,Object> |
createArtifactMap() |
Map<String,opennlp.tools.util.model.ArtifactSerializer> |
createArtifactSerializersMap() |
Map<String,String> |
createManifestEntries() |
String |
getCGFlags() |
Set<String> |
getDictionaryPoisonedTags() |
FeatureDictionary |
getFeatureDictionary() |
FeaturizerContextGenerator |
getFeaturizerContextGenerator() |
opennlp.tools.util.SequenceValidator<opennlp.tools.util.TokenTag> |
getSequenceValidator() |
void |
validateArtifactMap() |
public FeaturizerFactory()
FeaturizerFactory that provides the default
implementation of the resources.public FeaturizerFactory(FeatureDictionary featureDictionary, String cgFlags)
FeaturizerFactory. Use this constructor to
programmatically create a factory.public Map<String,opennlp.tools.util.model.ArtifactSerializer> createArtifactSerializersMap()
createArtifactSerializersMap in class opennlp.tools.util.BaseToolFactorypublic Map<String,String> createManifestEntries()
createManifestEntries in class opennlp.tools.util.BaseToolFactorypublic Map<String,Object> createArtifactMap()
createArtifactMap in class opennlp.tools.util.BaseToolFactorypublic String getCGFlags()
public FeatureDictionary getFeatureDictionary()
public FeaturizerContextGenerator getFeaturizerContextGenerator()
public opennlp.tools.util.SequenceValidator<opennlp.tools.util.TokenTag> getSequenceValidator()
public void validateArtifactMap()
throws opennlp.tools.util.InvalidFormatException
validateArtifactMap in class opennlp.tools.util.BaseToolFactoryopennlp.tools.util.InvalidFormatExceptionpublic static FeaturizerFactory create(String subclassName, FeatureDictionary posDictionary, String cgFlags) throws opennlp.tools.util.InvalidFormatException
opennlp.tools.util.InvalidFormatExceptionCopyright © 2012–2017 CoGrOO. All rights reserved.