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
-
Method Summary
-
Constructor Details
-
WordClusterFeatureGeneratorFactory
public WordClusterFeatureGeneratorFactory()
-
-
Method Details
-
create
- Specified by:
create
in classGeneratorFactory.AbstractXmlFeatureGeneratorFactory
- Returns:
null
if the subclass usesGeneratorFactory.AbstractXmlFeatureGeneratorFactory.resourceManager
to instantiate- Throws:
InvalidFormatException
-
getArtifactSerializerMapping
public Map<String,ArtifactSerializer<?>> getArtifactSerializerMapping() throws InvalidFormatException- Overrides:
getArtifactSerializerMapping
in classGeneratorFactory.AbstractXmlFeatureGeneratorFactory
- Throws:
InvalidFormatException
-