Package opennlp.tools.util.featuregen
Class WordClusterDictionary
java.lang.Object
opennlp.tools.util.featuregen.WordClusterDictionary
- All Implemented Interfaces:
SerializableArtifact
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionRead word2vec and clark clustering style lexicons. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>Retrieves the class which can serialize and recreate this artifact.lookupToken(String string) voidserialize(OutputStream out)
-
Constructor Details
-
WordClusterDictionary
Read word2vec and clark clustering style lexicons.- Parameters:
in- theInputStreamto read from.- Throws:
IOException- Thrown if IO errors occurred during read.
-
-
Method Details
-
lookupToken
-
serialize
- Throws:
IOException
-
getArtifactSerializerClass
Description copied from interface:SerializableArtifactRetrieves the class which can serialize and recreate this artifact.Note: The serializer class must have a
public zero argument constructoror an exception is thrown during model serialization/loading.- Specified by:
getArtifactSerializerClassin interfaceSerializableArtifact- Returns:
- The corresponding
ArtifactSerializerclass.
-