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 GeneratorFactory; it reads an element containing 'w2vwordcluster' as a tag name. These clusters are typically produced by word2vec or clark pos induction systems.
See Also:
  • Constructor Details

    • WordClusterFeatureGeneratorFactory

      public WordClusterFeatureGeneratorFactory()
  • Method Details

    • create

      public opennlp.tools.util.featuregen.AdaptiveFeatureGenerator create() throws opennlp.tools.util.InvalidFormatException
      Specified by:
      create in class GeneratorFactory.AbstractXmlFeatureGeneratorFactory
      Returns:
      null if the subclass uses GeneratorFactory.AbstractXmlFeatureGeneratorFactory.resourceManager to instantiate.
      Throws:
      opennlp.tools.util.InvalidFormatException - Thrown if the format is incorrect.
    • getArtifactSerializerMapping

      public Map<String, opennlp.tools.util.model.ArtifactSerializer<?>> getArtifactSerializerMapping() throws opennlp.tools.util.InvalidFormatException
      Overrides:
      getArtifactSerializerMapping in class GeneratorFactory.AbstractXmlFeatureGeneratorFactory
      Throws:
      opennlp.tools.util.InvalidFormatException