Class WordClusterDictionary

Namespace
NOpenNLP.Tools.Util.Featuregen
Assembly
NOpenNLP.Tools.dll
public class WordClusterDictionary : ISerializableArtifact
Inheritance
WordClusterDictionary
Implements
Inherited Members

Constructors

WordClusterDictionary(Stream)

Read word2vec and clark clustering style lexicons.

public WordClusterDictionary(Stream @in)

Parameters

in Stream

the inputstream

Exceptions

IOException

the io exception

Properties

ArtifactSerializerClass

Retrieves the class which can serialize and recreate this artifact.
Note: The serializer class must have a public zero argument constructor or an exception is thrown during model serialization/loading.

public virtual Type ArtifactSerializerClass { get; }

Property Value

Type

the corresponding IArtifactSerializer class.

Methods

LookupToken(string)

public virtual string? LookupToken(string @string)

Parameters

string string

Returns

string

Serialize(Stream)

Writes the cluster dictionary to the given Stream.

public virtual void Serialize(Stream @out)

Parameters

out Stream

the Stream to write the dictionary into.

Exceptions

IOException