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- the inputstream- Throws:
IOException- the io exception
-
-
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 constructor or an exception is thrown during model serialization/loading.- Specified by:
getArtifactSerializerClassin interfaceSerializableArtifact- Returns:
- the corresponding ArtifactSerializer class.
-