org.cogroo.tools.featurizer
Class FeaturizerFactory
java.lang.Object
opennlp.tools.util.BaseToolFactory
org.cogroo.tools.featurizer.FeaturizerFactory
- Direct Known Subclasses:
- DefaultFeaturizerFactory, FSAFeaturizerFactory
public abstract class FeaturizerFactory
- extends opennlp.tools.util.BaseToolFactory
Methods inherited from class opennlp.tools.util.BaseToolFactory |
create, create |
FeaturizerFactory
public FeaturizerFactory()
- Creates a
FeaturizerFactory
that provides the default
implementation of the resources.
FeaturizerFactory
public FeaturizerFactory(FeatureDictionary featureDictionary,
String cgFlags)
- Creates a
FeaturizerFactory
. Use this constructor to
programmatically create a factory.
createArtifactSerializersMap
public Map<String,opennlp.tools.util.model.ArtifactSerializer> createArtifactSerializersMap()
- Overrides:
createArtifactSerializersMap
in class opennlp.tools.util.BaseToolFactory
createManifestEntries
public Map<String,String> createManifestEntries()
- Overrides:
createManifestEntries
in class opennlp.tools.util.BaseToolFactory
createArtifactMap
public Map<String,Object> createArtifactMap()
- Overrides:
createArtifactMap
in class opennlp.tools.util.BaseToolFactory
getCGFlags
public String getCGFlags()
getFeatureDictionary
public FeatureDictionary getFeatureDictionary()
getDictionaryPoisonedTags
public Set<String> getDictionaryPoisonedTags()
getFeaturizerContextGenerator
public FeaturizerContextGenerator getFeaturizerContextGenerator()
getSequenceValidator
public opennlp.tools.util.SequenceValidator<WordTag> getSequenceValidator()
validateArtifactMap
public void validateArtifactMap()
throws opennlp.tools.util.InvalidFormatException
- Specified by:
validateArtifactMap
in class opennlp.tools.util.BaseToolFactory
- Throws:
opennlp.tools.util.InvalidFormatException
create
public static FeaturizerFactory create(String subclassName,
FeatureDictionary posDictionary,
String cgFlags)
throws opennlp.tools.util.InvalidFormatException
- Throws:
opennlp.tools.util.InvalidFormatException
Copyright © 2012-2013 CoGrOO. All Rights Reserved.