Package opennlp.tools.util.featuregen
Class WordClusterDictionary
java.lang.Object
opennlp.tools.util.featuregen.WordClusterDictionary
- All Implemented Interfaces:
SerializableArtifact
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionRead word2vec and clark clustering style lexicons. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
Retrieves the class which can serialize and recreate this artifact.lookupToken
(String string) void
serialize
(OutputStream out)
-
Constructor Details
-
WordClusterDictionary
Read word2vec and clark clustering style lexicons.- Parameters:
in
- theInputStream
to read from.- Throws:
IOException
- Thrown if IO errors occurred during read.
-
-
Method Details
-
lookupToken
-
serialize
- Throws:
IOException
-
getArtifactSerializerClass
Description copied from interface:SerializableArtifact
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.- Specified by:
getArtifactSerializerClass
in interfaceSerializableArtifact
- Returns:
- The corresponding
ArtifactSerializer
class.
-