Package opennlp.tools.util.featuregen
Class WordClusterFeatureGeneratorFactory
- java.lang.Object
-
- opennlp.tools.util.featuregen.GeneratorFactory.AbstractXmlFeatureGeneratorFactory
-
- opennlp.tools.util.featuregen.WordClusterFeatureGeneratorFactory
-
public class WordClusterFeatureGeneratorFactory extends GeneratorFactory.AbstractXmlFeatureGeneratorFactory
Defines a word cluster generator factory; it reads an element containing 'w2vwordcluster' as a tag name; these clusters are typically produced by word2vec or clark pos induction systems.
-
-
Constructor Summary
Constructors Constructor Description WordClusterFeatureGeneratorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AdaptiveFeatureGenerator
create()
AdaptiveFeatureGenerator
create(org.w3c.dom.Element generatorElement, FeatureGeneratorResourceProvider resourceManager)
Deprecated.java.util.Map<java.lang.String,ArtifactSerializer<?>>
getArtifactSerializerMapping()
-
-
-
Method Detail
-
create
@Deprecated public AdaptiveFeatureGenerator create(org.w3c.dom.Element generatorElement, FeatureGeneratorResourceProvider resourceManager) throws InvalidFormatException
Deprecated.- Throws:
InvalidFormatException
-
create
public AdaptiveFeatureGenerator create() throws InvalidFormatException
- Specified by:
create
in classGeneratorFactory.AbstractXmlFeatureGeneratorFactory
- Returns:
- null if the subclass uses
GeneratorFactory.AbstractXmlFeatureGeneratorFactory.resourceManager
to instantiate - Throws:
InvalidFormatException
-
getArtifactSerializerMapping
public java.util.Map<java.lang.String,ArtifactSerializer<?>> getArtifactSerializerMapping() throws InvalidFormatException
- Overrides:
getArtifactSerializerMapping
in classGeneratorFactory.AbstractXmlFeatureGeneratorFactory
- Throws:
InvalidFormatException
-
-