Class WordClusterFeatureGeneratorFactory
- Namespace
- NOpenNLP.Tools.Util.Featuregen
- Assembly
- NOpenNLP.Tools.dll
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.
public class WordClusterFeatureGeneratorFactory : GeneratorFactory.AbstractXmlFeatureGeneratorFactory
- Inheritance
-
WordClusterFeatureGeneratorFactory
- Inherited Members
Properties
ArtifactSerializerMapping
public override IDictionary<string, IArtifactSerializer> ArtifactSerializerMapping { get; }
Property Value
Methods
Create()
public override IAdaptiveFeatureGenerator? Create()
Returns
- IAdaptiveFeatureGenerator
null if the subclass uses
resourceManagerto instantiate
Exceptions
Create(XmlElement, FeatureGeneratorResourceProvider)
Creates an IAdaptiveFeatureGenerator from a the describing XML element.
public virtual IAdaptiveFeatureGenerator Create(XmlElement generatorElement, FeatureGeneratorResourceProvider resourceManager)
Parameters
generatorElementXmlElementthe element which contains the configuration
resourceManagerFeatureGeneratorResourceProviderthe resource manager which could be used to access referenced resources
Returns
- IAdaptiveFeatureGenerator
the configured IAdaptiveFeatureGenerator